Skip to content

Instantly share code, notes, and snippets.

@Mr-Malomz
Created August 29, 2020 20:57
Show Gist options
  • Save Mr-Malomz/76772f47b73330b98c478d8df0cb8dcc to your computer and use it in GitHub Desktop.
Save Mr-Malomz/76772f47b73330b98c478d8df0cb8dcc to your computer and use it in GitHub Desktop.
Auth Module
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