feat(settings): integrate settings handlers to server

This commit is contained in:
hexxa 2021-10-09 13:02:20 +08:00 committed by Hexxa
parent a7de2e6399
commit 76cf1274af

View file

@ -264,6 +264,8 @@ func initHandlers(router *gin.Engine, cfg gocfg.ICfg, deps *depidx.Deps) (*gin.E
settingsAPI := v1.Group("/settings")
settingsAPI.OPTIONS("/health", settingsSvc.Health)
settingsAPI.GET("/client", settingsSvc.GetClientCfg)
settingsAPI.PATCH("/client", settingsSvc.SetClientCfg)
return router, nil
}