add global config support
This commit is contained in:
parent
cd1e1a42f3
commit
34d553a890
23 changed files with 1682 additions and 343 deletions
|
|
@ -46,6 +46,8 @@ func ApiGroup(v0 touka.IRouter, cdb *db.ConfigDB, cfg *config.Config) {
|
|||
glbr.GET("/tls/providers", func(c *touka.Context) {
|
||||
c.JSON(200, gen.ProviderList)
|
||||
})
|
||||
glbr.PUT("/config", PutGlobalConfig(cdb, cfg))
|
||||
glbr.GET("/config", GetGlobalConfig(cdb))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue