diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-29 20:45:43 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-29 20:45:43 +0530 |
commit | 68629768cbb7c86fd4b118e7d555450297f3fb8a (patch) | |
tree | e5bb06635ddf50bc58e25bae931ac453a28f844a /user/router.go | |
parent | 7ee07197f4fc5806e72a1aefd49c7a448c600cf4 (diff) |
moved refresh mechanism to package auth
Diffstat (limited to 'user/router.go')
-rw-r--r-- | user/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/user/router.go b/user/router.go index ad9b4df..2614bf4 100644 --- a/user/router.go +++ b/user/router.go @@ -27,7 +27,7 @@ func Routes(route *gin.Engine) { { u.GET("/", util.Authorize(), getSelf) u.POST("/new", validateMiddleware(), save) - u.PUT("/:userId", checkPassword(), modify) - u.DELETE("/:userId", checkPassword(), remove) + u.PUT("/:userId", CheckPassword(), modify) + u.DELETE("/:userId", CheckPassword(), remove) } } |