Created
March 4, 2019 15:05
-
-
Save saurabhpati/91ab83f64151573597d21dd96c82c3c7 to your computer and use it in GitHub Desktop.
User Module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Module } from '@nestjs/common'; | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { User } from './user.entity'; | |
import { UserController } from './user.controller'; | |
import { UserService } from './user.service'; | |
@Module({ | |
imports: [TypeOrmModule.forFeature([User])], | |
providers: [UserService], | |
controllers: [UserController] | |
}) | |
export class UserModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment