mirror of https://github.com/fantasticit/think.git
17 lines
528 B
TypeScript
17 lines
528 B
TypeScript
import { forwardRef, Module } from '@nestjs/common';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
|
|
import { AuthController } from '@controllers/auth.controller';
|
|
import { AuthEntity } from '@entities/auth.entity';
|
|
import { AuthService } from '@services/auth.service';
|
|
|
|
import { UserModule } from './user.module';
|
|
|
|
@Module({
|
|
imports: [TypeOrmModule.forFeature([AuthEntity]), forwardRef(() => UserModule)],
|
|
providers: [AuthService],
|
|
exports: [AuthService],
|
|
controllers: [AuthController],
|
|
})
|
|
export class AuthModule {}
|