diff options
Diffstat (limited to 'invoice')
-rw-r--r-- | invoice/router.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/invoice/router.go b/invoice/router.go index ba6665f..37c3cd5 100644 --- a/invoice/router.go +++ b/invoice/router.go @@ -18,6 +18,7 @@ package invoice import ( + "github.com/MikunoNaka/OpenBills-server/auth" "github.com/gin-gonic/gin" "log" "errors" @@ -30,6 +31,7 @@ import ( func Routes(route *gin.Engine) { i := route.Group("/invoice") + i.Use(auth.Authorize()) { i.GET("/all", func(ctx *gin.Context) { // TODO: add functionality to filter results |