auth module controllers carried

This commit is contained in:
2025-07-26 21:51:27 +03:00
parent 2e10de9758
commit f39dc541e1
58 changed files with 745 additions and 527 deletions

View File

@@ -7,8 +7,10 @@ import {
Param,
Body,
HttpCode,
UseGuards,
} from '@nestjs/common';
import { AccountsService } from './accounts.service';
import { AuthControlGuard, EndpointControlGuard } from '../middleware/access-control.guard';
@Controller('accounts')
export class AccountsController {
@@ -16,6 +18,7 @@ export class AccountsController {
@Post('filter')
@HttpCode(200)
@UseGuards(AuthControlGuard, EndpointControlGuard)
async filterAccounts(@Body() query: any) {
const result = await this.accountsService.findWithPagination(query);
const { pagination, data } = result;