add global config support

This commit is contained in:
wjqserver 2025-06-30 15:31:14 +08:00
parent cd1e1a42f3
commit 34d553a890
23 changed files with 1682 additions and 343 deletions

View file

@ -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))
}
}