Spaces:
Sleeping
Sleeping
| 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'; | |
| ({ | |
| 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 {} | |