From bbc25e292b2561ea38c4ae47bcf379a340980705 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 29 Jan 2023 20:47:31 +0530 Subject: added auth middleware to /item --- item/router.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'item') diff --git a/item/router.go b/item/router.go index 614e7f2..a04607c 100644 --- a/item/router.go +++ b/item/router.go @@ -18,13 +18,12 @@ package item import ( - //"github.com/MikunoNaka/OpenBills-server/util" + "github.com/MikunoNaka/OpenBills-server/util" "github.com/gin-gonic/gin" ) func Routes(route *gin.Engine) { - i := route.Group("/item") - //i.Use(util.Authorize()) + i := route.Group("/item", util.Authorize()) { i.GET("/all", getAll) // TODO: add functionality to filter results i.POST("/new", save) -- cgit v1.2.3