We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a7bb39 commit 7c8f9d9Copy full SHA for 7c8f9d9
1 file changed
sample/24-auth-jwt/src/app.controller.ts
@@ -7,13 +7,13 @@ export class AppController {
7
constructor(private readonly authService: AuthService) {}
8
9
@UseGuards(AuthGuard('local'))
10
- @Post('/login')
+ @Post('login')
11
async login(@Request() req) {
12
return this.authService.login(req.user);
13
}
14
15
@UseGuards(AuthGuard('jwt'))
16
- @Get('/me')
+ @Get('me')
17
getProfile(@Request() req) {
18
return req.user;
19
0 commit comments