summaryrefslogtreecommitdiff
path: root/item
diff options
context:
space:
mode:
Diffstat (limited to 'item')
-rw-r--r--item/router.go5
1 files changed, 2 insertions, 3 deletions
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)