From 8f0e8e4d85aafc2269ba313f7d1f6b105d129a1b Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Thu, 4 Apr 2024 15:30:38 -0700 Subject: [PATCH] added remove scopes to the handler --- api/handlers/v1/handler.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/handlers/v1/handler.go b/api/handlers/v1/handler.go index 6db17fe..8904920 100644 --- a/api/handlers/v1/handler.go +++ b/api/handlers/v1/handler.go @@ -41,9 +41,9 @@ func (h *Handler) Register(v1 *echo.Group) { auth.POST("/login", h.AuthLogin) auth.POST("/register", h.AuthRegister) auth.Use(echojwt.WithConfig(jwtConfig)) - auth.POST("/scopes/add", h.AddScope) - //auth.POST("/refresh", h.RefreshJwtToken) - + auth.POST("/scopes/add", h.AddScopes) + auth.POST("/scopes/remove", h.RemoveScopes) + demo := v1.Group("/demo") demo.GET("/hello", h.DemoHello) demo.GET("/hello/:who", h.HelloWho)