feat(settings): integrate settings handlers to server
This commit is contained in:
parent
a7de2e6399
commit
76cf1274af
1 changed files with 2 additions and 0 deletions
|
@ -264,6 +264,8 @@ func initHandlers(router *gin.Engine, cfg gocfg.ICfg, deps *depidx.Deps) (*gin.E
|
||||||
|
|
||||||
settingsAPI := v1.Group("/settings")
|
settingsAPI := v1.Group("/settings")
|
||||||
settingsAPI.OPTIONS("/health", settingsSvc.Health)
|
settingsAPI.OPTIONS("/health", settingsSvc.Health)
|
||||||
|
settingsAPI.GET("/client", settingsSvc.GetClientCfg)
|
||||||
|
settingsAPI.PATCH("/client", settingsSvc.SetClientCfg)
|
||||||
|
|
||||||
return router, nil
|
return router, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue