Created
August 29, 2020 20:57
-
-
Save Mr-Malomz/76772f47b73330b98c478d8df0cb8dcc to your computer and use it in GitHub Desktop.
Auth Module
This file contains hidden or 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 { AuthController } from './auth.controller'; | |
import { AuthService } from './auth.service'; | |
//Imported TypeOrmModule and UserRepository | |
import { TypeOrmModule } from '@nestjs/typeorm'; | |
import { UserRepository } from './user.repository'; | |
@Module({ | |
//updated imports | |
imports: [TypeOrmModule.forFeature([UserRepository])], | |
controllers: [AuthController], | |
providers: [AuthService] | |
}) | |
export class AuthModule {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment