Browse Source

chore(api): update response codes to 200 instead of the default 201

pull/8/head
isra el 2 years ago
parent
commit
3d6f3da6d1
  1. 2
      api/src/auth/auth.controller.ts

2
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)

Loading…
Cancel
Save