corrected token required
This commit is contained in:
parent
f5ba267f78
commit
3caad838f6
@ -66,6 +66,7 @@ export class AuthController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@UseGuards(AuthGuard)
|
@UseGuards(AuthGuard)
|
||||||
|
@ApiBearerAuth('acces_token')
|
||||||
@Post('logout')
|
@Post('logout')
|
||||||
logout(@User() currentUser: Users) {
|
logout(@User() currentUser: Users) {
|
||||||
return this.authService.logout(currentUser.id);
|
return this.authService.logout(currentUser.id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user