add limiter web api

This commit is contained in:
ginuerzh
2022-09-06 15:38:45 +08:00
parent 779af72f7c
commit 54e1801e74
13 changed files with 330 additions and 48 deletions

View File

@ -24,7 +24,7 @@ type getConfigResponse struct {
}
func getConfig(ctx *gin.Context) {
// swagger:route GET /config ConfigManagement getConfigRequest
// swagger:route GET /config Config getConfigRequest
//
// Get current config.
//
@ -71,7 +71,7 @@ type saveConfigResponse struct {
}
func saveConfig(ctx *gin.Context) {
// swagger:route POST /config ConfigManagement saveConfigRequest
// swagger:route POST /config Config saveConfigRequest
//
// Save current config to file (gost.yaml or gost.json).
//