From 3d6f3da6d1057a09b92c7b0aba54874846a0fff3 Mon Sep 17 00:00:00 2001 From: isra el Date: Mon, 15 Apr 2024 01:50:53 +0300 Subject: [PATCH] chore(api): update response codes to 200 instead of the default 201 --- api/src/auth/auth.controller.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/src/auth/auth.controller.ts b/api/src/auth/auth.controller.ts index feb886f..c5a39f7 100644 --- a/api/src/auth/auth.controller.ts +++ b/api/src/auth/auth.controller.ts @@ -27,6 +27,7 @@ export class AuthController { constructor(private authService: AuthService) {} @ApiOperation({ summary: 'Login' }) + @HttpCode(HttpStatus.OK) @Post('/login') async login(@Body() input: LoginInputDTO) { const data = await this.authService.login(input) @@ -34,6 +35,7 @@ export class AuthController { } @ApiOperation({ summary: 'Login With Google' }) + @HttpCode(HttpStatus.OK) @Post('/google-login') async googleLogin(@Body() input: any) { const data = await this.authService.loginWithGoogle(input.idToken)