Spaces:
Sleeping
Sleeping
File size: 857 Bytes
e3bc69d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { Module } from '@nestjs/common';
import { MongooseModule } from '@nestjs/mongoose';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { AuthGuard } from './auth.guard';
import { User, UserSchema } from './entities/user.entity';
import { AuthSession, AuthSessionSchema } from './entities/auth-session.entity';
import { PasswordReset, PasswordResetSchema } from './entities/password-reset.entity';
@Module({
imports: [
MongooseModule.forFeature([
{ name: User.name, schema: UserSchema },
{ name: AuthSession.name, schema: AuthSessionSchema },
{ name: PasswordReset.name, schema: PasswordResetSchema },
]),
],
controllers: [AuthController],
providers: [AuthService, AuthGuard],
exports: [AuthService, AuthGuard, MongooseModule],
})
export class AuthModule {}
|