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 /brand | |
parent | 31e9605652faf350291634f5a2d642573f320e66 (diff) |
created endpoint to get logged in user's info
Diffstat (limited to 'brand')
-rw-r--r-- | brand/router.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/brand/router.go b/brand/router.go index b5522dc..5c9c7af 100644 --- a/brand/router.go +++ b/brand/router.go @@ -18,7 +18,7 @@ package brand import ( - "github.com/MikunoNaka/OpenBills-server/auth" + "github.com/MikunoNaka/OpenBills-server/util" "github.com/gin-gonic/gin" "go.mongodb.org/mongo-driver/bson/primitive" "log" @@ -28,7 +28,7 @@ import ( func Routes(route *gin.Engine) { b := route.Group("/brand") - b.Use(auth.Authorize()) + b.Use(util.Authorize()) { b.GET("/all", func(ctx *gin.Context) { // TODO: add functionality to filter results |