优化结构

This commit is contained in:
Yvan
2026-08-21 09:07:33 +08:00
parent 77e192b6c0
commit 80e62acf7d
6 changed files with 57 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ func RegisterAPI(group, public *gin.RouterGroup, engine *gin.Engine, h *API) {
api.GET("/syncApi", h.Sync(engine))
api.POST("/ignoreApi", h.Ignore)
api.POST("/enterSyncApi", h.ApplySync)
public.Group("/api").GET("/freshCasbin", h.FreshCasbin)
group.Group("/api").GET("/freshCasbin", h.FreshCasbin)
casbin := group.Group("/casbin")
casbin.POST("/updateCasbin", h.SetPolicyPaths)
casbin.POST("/getPolicyPathByAuthorityId", h.PolicyPaths)