From 58f08d00a335c0867ae323aeb43735539a37109b Mon Sep 17 00:00:00 2001 From: sdraris Date: Thu, 4 Sep 2025 11:42:59 +0200 Subject: [PATCH] edited auth correction --- src/routes/auth/auth.controller.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/auth/auth.controller.ts b/src/routes/auth/auth.controller.ts index 3f814a2..fbc0a2e 100644 --- a/src/routes/auth/auth.controller.ts +++ b/src/routes/auth/auth.controller.ts @@ -9,21 +9,22 @@ import { AuthGuard } from 'src/common/guards/auth.guard'; @ApiTags('Authentification') @Controller('auth') export class AuthController { - constructor(private readonly authService: AuthService) {} + constructor(private readonly authService: AuthService) { } - @Public() @ApiOperation({ summary: 'Connexion' }) @Post('login') async login(@Body() dto: LoginDto) { return this.authService.login(dto); } + @Public() @Post('register') @ApiOperation({ summary: 'Inscription' }) async register(@Body() dto: RegisterDto) { return this.authService.register(dto); } + @Public() @Post('refresh') @ApiOperation({ summary: 'Rafraichir les tokens' }) async refresh(@Body('refresh_token') refreshToken: string) {