Bot
This commit is contained in:
@@ -13,6 +13,11 @@ import { FindUsersHandler } from './application/handlers/find-users.handler';
|
||||
import { UpdateUserHandler } from './application/handlers/update-user.handler';
|
||||
import { PermissionGuard } from '../authorization/presentation/guards/permission.guard';
|
||||
import { Reflector } from '@nestjs/core';
|
||||
import { LoginHandler } from './application/handlers/login.handler';
|
||||
import { AuthController } from './presentation/controllers/auth.controller';
|
||||
import { TokenHandler } from './application/handlers/token.handler';
|
||||
import { PrismaServiceAccountRepository } from './infrastructure/repositories/prisma-service-account.repository';
|
||||
import { ServiceAccountRepository } from './domain/repositories/service-account.repository.interface';
|
||||
|
||||
|
||||
@Module({
|
||||
@@ -24,7 +29,7 @@ import { Reflector } from '@nestjs/core';
|
||||
},
|
||||
}),
|
||||
],
|
||||
controllers: [UsersController],
|
||||
controllers: [UsersController, AuthController],
|
||||
providers: [
|
||||
//#region User
|
||||
CreateUserHandler,
|
||||
@@ -32,6 +37,8 @@ import { Reflector } from '@nestjs/core';
|
||||
FindUsersHandler,
|
||||
UpdateUserHandler,
|
||||
DeleteUserHandler,
|
||||
LoginHandler,
|
||||
TokenHandler,
|
||||
//#endregion
|
||||
|
||||
JwtAuthGuard,
|
||||
@@ -39,10 +46,15 @@ import { Reflector } from '@nestjs/core';
|
||||
Reflector,
|
||||
PrismaService,
|
||||
PrismaUserRepository,
|
||||
PrismaServiceAccountRepository,
|
||||
{
|
||||
provide: UserRepository,
|
||||
useClass: PrismaUserRepository,
|
||||
},
|
||||
{
|
||||
provide: ServiceAccountRepository,
|
||||
useClass: PrismaServiceAccountRepository,
|
||||
},
|
||||
{
|
||||
provide: 'EVENT_DISPATCHER',
|
||||
useValue: new EventDispatcher(),
|
||||
|
||||
Reference in New Issue
Block a user