Skip to content

Commit 4328eef

Browse files
authored
Merge pull request #59 from techknowledge-blog/hotfix/auth-jwt
Auth jwt
2 parents a1b1c02 + 5369974 commit 4328eef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/modules/config/jwt-secret.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
export const JWT_SECRET = '';
1+
export const JWT_SECRET =
2+
'jW4gVXqP0P8aCyjJmZcO4Q5hQ3rR3uAFpN+LtTGBQz9Bx6bnM8XLVmhJpg0FZcHx';

src/modules/posts/posts.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class PostsController {
3232
}
3333

3434
@Get(':slug')
35-
async getPostBySlug(@Param('slug') slug: string): Promise<PostModel> {
35+
async findPostBySlug(@Param('slug') slug: string): Promise<PostModel> {
3636
return this.postService.findPostBySlug(slug);
3737
}
3838
}

0 commit comments

Comments
 (0)