Skip to content

Commit 7c8f9d9

Browse files
Update app.controller.ts
1 parent 4a7bb39 commit 7c8f9d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sample/24-auth-jwt/src/app.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ export class AppController {
77
constructor(private readonly authService: AuthService) {}
88

99
@UseGuards(AuthGuard('local'))
10-
@Post('/login')
10+
@Post('login')
1111
async login(@Request() req) {
1212
return this.authService.login(req.user);
1313
}
1414

1515
@UseGuards(AuthGuard('jwt'))
16-
@Get('/me')
16+
@Get('me')
1717
getProfile(@Request() req) {
1818
return req.user;
1919
}

0 commit comments

Comments
 (0)