forked from Ynov/ptitspas-ynov-back
corrected token required
This commit is contained in:
parent
3caad838f6
commit
f64f13b545
@ -66,7 +66,7 @@ export class AuthController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@UseGuards(AuthGuard)
|
@UseGuards(AuthGuard)
|
||||||
@ApiBearerAuth('acces_token')
|
@ApiBearerAuth('access-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