@@ -31,7 +31,7 @@ func HandleRouter(app *fiber.App) {
31
31
api .Put ("/portal" , middleware .SetMiddlewareAUTH (true ), controllers .UpdatePortal )
32
32
api .Delete ("/portal/:id" , middleware .SetMiddlewareAUTH (true ), controllers .DeletePortalById )
33
33
34
- api .Get ("/function" , middleware .SetMiddlewareAUTH (false ), controllers .GetFunction )
34
+ api .Get ("/function" , middleware .SetMiddlewareAUTH (true ), controllers .GetFunction )
35
35
api .Get ("/function/:id" , middleware .SetMiddlewareAUTH (true ), controllers .GetFunctionById )
36
36
api .Post ("/function" , middleware .SetMiddlewareAUTH (true ), controllers .SaveFunction )
37
37
api .Put ("/function" , middleware .SetMiddlewareAUTH (true ), controllers .UpdateFunction )
@@ -49,6 +49,6 @@ func HandleRouter(app *fiber.App) {
49
49
api .Put ("/group" , middleware .SetMiddlewareAUTH (true ), controllers .UpdateGroup )
50
50
api .Delete ("/group/:id" , middleware .SetMiddlewareAUTH (true ), controllers .DeleteGroupById )
51
51
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
+
54
54
}
0 commit comments