diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-28 23:32:41 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2023-01-28 23:32:41 +0530 |
commit | 0607478f1e4c86619a606af7876a6625e859ee1a (patch) | |
tree | 308c7a03e911994452a903d029c8cacd9a824d32 /item | |
parent | 31e9605652faf350291634f5a2d642573f320e66 (diff) |
created endpoint to get logged in user's info
Diffstat (limited to 'item')
-rw-r--r-- | item/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/item/router.go b/item/router.go index 4cdd633..c65af8f 100644 --- a/item/router.go +++ b/item/router.go @@ -19,7 +19,7 @@ package item import ( "github.com/gin-gonic/gin" - "github.com/MikunoNaka/OpenBills-server/auth" + "github.com/MikunoNaka/OpenBills-server/util" "go.mongodb.org/mongo-driver/bson/primitive" "log" "net/http" @@ -27,7 +27,7 @@ import ( func Routes(route *gin.Engine) { i := route.Group("/item") - i.Use(auth.Authorize()) + i.Use(util.Authorize()) { // TODO: add functionality to filter results // /all returns all the saved items |