think/packages/server/src/modules/auth.module.ts

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 {}