feat: add pagination, sorting and filtering

This commit is contained in:
2026-06-07 12:58:38 +03:30
parent 28c1a4831e
commit d1fecf62ad
19 changed files with 389 additions and 176 deletions
+4 -4
View File
@@ -1,4 +1,4 @@
import { Body, Controller, HttpCode, Post } from '@nestjs/common';
import { Body, Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import { LoginDTO } from './dtos/login.dto';
import { AuthService } from './providers/auth.service';
import { VerifyOtpDTO } from './dtos/verify-otp.dto';
@@ -16,21 +16,21 @@ export class AuthController {
@Public()
@Post('login')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
public async logIn(@Body() loginDto: LoginDTO) {
return await this.authService.logIn(loginDto);
}
@Public()
@Post('verify-otp')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
public async verifyOTP(@Body() verifyOtpDto: VerifyOtpDTO) {
return await this.authService.verifyOTP(verifyOtpDto);
}
@Public()
@Post('refresh')
@HttpCode(200)
@HttpCode(HttpStatus.OK)
public async refreshToken(@Body() refreshTokenDto: RefreshTokenDTO) {
return await this.authService.refreshToken(refreshTokenDto);
}