Skip to content

Commit 3baa28b

Browse files
committed
update user
1 parent 5fe1475 commit 3baa28b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

routers/routers.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func HandleRouter(app *fiber.App) {
3131
api.Put("/portal", middleware.SetMiddlewareAUTH(true), controllers.UpdatePortal)
3232
api.Delete("/portal/:id", middleware.SetMiddlewareAUTH(true), controllers.DeletePortalById)
3333

34-
api.Get("/function", middleware.SetMiddlewareAUTH(false), controllers.GetFunction)
34+
api.Get("/function", middleware.SetMiddlewareAUTH(true), controllers.GetFunction)
3535
api.Get("/function/:id", middleware.SetMiddlewareAUTH(true), controllers.GetFunctionById)
3636
api.Post("/function", middleware.SetMiddlewareAUTH(true), controllers.SaveFunction)
3737
api.Put("/function", middleware.SetMiddlewareAUTH(true), controllers.UpdateFunction)
@@ -49,6 +49,6 @@ func HandleRouter(app *fiber.App) {
4949
api.Put("/group", middleware.SetMiddlewareAUTH(true), controllers.UpdateGroup)
5050
api.Delete("/group/:id", middleware.SetMiddlewareAUTH(true), controllers.DeleteGroupById)
5151

52-
api.Get("/acl", middleware.SetMiddlewareAUTH(true), controllers.DeleteFunctionById)
53-
api.Post("/acl", middleware.SetMiddlewareAUTH(true), controllers.DeleteFunctionById)
52+
api.Get("/acl", middleware.SetMiddlewareAUTH(false), controllers.DeleteFunctionById)
53+
5454
}

0 commit comments

Comments
 (0)