feat(gateway): 优化gateway相关功能
Quality check / Web UI (push) Successful in 9m19s

This commit is contained in:
mei
2026-09-12 15:32:27 +08:00
parent 0d89b7fe8f
commit 9b656cebee
84 changed files with 2769 additions and 825 deletions
+9
View File
@@ -106,6 +106,15 @@ func main() {
rules.DELETE("/:ruleID", rule.HandleDeleteRule)
}
gatewayRules := authorized.Group("/gateway-rules")
{
gatewayRules.GET("/", rule.HandleGetAllGatewayRules)
gatewayRules.POST("/", rule.HandleCreateGatewayRule)
gatewayRules.PUT("/:ruleID", rule.HandleEditGatewayRule)
gatewayRules.POST("/:ruleID/test", rule.HandleTestGatewayRule)
gatewayRules.DELETE("/:ruleID", rule.HandleDeleteGatewayRule)
}
accounts := authorized.Group("/accounts")
{
accounts.GET("/", account.HandleGetAllAccounts)