Skip to content

Commit

Permalink
Removed whoAmI route
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Boddin committed Sep 14, 2023
1 parent 7500004 commit ba6ab60
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Server/src/routes/user.route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ export class UserRoute {
this.router.put("/password", authenticateJWT, jsonParser, please_dont_crash(this.changePassword))
this.router.put("/name", authenticateJWT, jsonParser, please_dont_crash(this.changeUsername))
this.router.delete("/:userName", authenticateJWT, please_dont_crash(this.deleteUser))
// FIXME: This should be obtainable from the jwt so this could be deleted in the future.
this.router.get("/whoAmI", authenticateJWT, (req, res) => {
res.json(res.locals.username)
})
}

static get router() {
Expand Down

0 comments on commit ba6ab60

Please sign in to comment.