Skip to content

Commit

Permalink
change method
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinOehlerkingCap committed Oct 8, 2024
1 parent 76dfe9d commit 7e378cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { JWT, JwtAuthentication } from '@infra/auth-guard';
import { Controller, Delete, HttpCode, HttpStatus } from '@nestjs/common';
import { Controller, HttpCode, HttpStatus, Post } from '@nestjs/common';
import { ApiOkResponse, ApiOperation, ApiTags, ApiUnauthorizedResponse } from '@nestjs/swagger';
import { LogoutUc } from '../uc';

Expand All @@ -9,7 +9,7 @@ export class LogoutController {
constructor(private readonly logoutUc: LogoutUc) {}

@JwtAuthentication()
@Delete()
@Post()
@HttpCode(HttpStatus.OK)
@ApiOperation({ summary: 'Logs out a user.' })
@ApiOkResponse({ description: 'Logout was successful.' })
Expand Down

0 comments on commit 7e378cf

Please sign in to comment.