summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-28 23:32:41 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-28 23:32:41 +0530
commit0607478f1e4c86619a606af7876a6625e859ee1a (patch)
tree308c7a03e911994452a903d029c8cacd9a824d32 /client
parent31e9605652faf350291634f5a2d642573f320e66 (diff)
created endpoint to get logged in user's info
Diffstat (limited to 'client')
-rw-r--r--client/router.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/router.go b/client/router.go
index 0e5663b..232ad83 100644
--- a/client/router.go
+++ b/client/router.go
@@ -18,7 +18,7 @@
package client
import (
- "github.com/MikunoNaka/OpenBills-server/auth"
+ "github.com/MikunoNaka/OpenBills-server/util"
"github.com/gin-gonic/gin"
"log"
"net/http"
@@ -27,7 +27,7 @@ import (
func Routes(route *gin.Engine) {
c := route.Group("/client")
- c.Use(auth.Authorize())
+ c.Use(util.Authorize())
{
c.GET("/all", func(ctx *gin.Context) {
// TODO: add functionality to filter results