summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/router.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/router.go b/client/router.go
index 46e339a..0e5663b 100644
--- a/client/router.go
+++ b/client/router.go
@@ -18,6 +18,7 @@
package client
import (
+ "github.com/MikunoNaka/OpenBills-server/auth"
"github.com/gin-gonic/gin"
"log"
"net/http"
@@ -26,6 +27,7 @@ import (
func Routes(route *gin.Engine) {
c := route.Group("/client")
+ c.Use(auth.Authorize())
{
c.GET("/all", func(ctx *gin.Context) {
// TODO: add functionality to filter results