Skip to content

Commit

Permalink
blog controller added
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipbera35 committed Jan 5, 2025
1 parent d0acb54 commit 1749548
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"java.compile.nullAnalysis.mode": "automatic"
"java.compile.nullAnalysis.mode": "automatic",
"cSpell.words": [
"Hikari",
"jdbc",
"Nandalalbera",
"springframework",
"zaxxer"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ public ResponseEntity<Blog> createBlog(@RequestBody Blog blog, HttpServletReques
if (token.length() == 0) {
return new ResponseEntity<>(null, HttpStatus.valueOf(401));
}
if (auth.verifyToken(token)) {
return new ResponseEntity<>(null, HttpStatus.valueOf(401));
}
// if (auth.verifyToken(token)) {
// return new ResponseEntity<>(null, HttpStatus.valueOf(401));
// }
Profile user = auth.getProfile(token);
if (user == null) {
return new ResponseEntity<>(null, HttpStatus.valueOf(401));
Expand Down

0 comments on commit 1749548

Please sign in to comment.