mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 08:33:10 +00:00
wip(app): global config
This commit is contained in:
@@ -147,8 +147,8 @@ export const GlobalRoutes = lazy(() =>
|
||||
validator("json", Config.Info),
|
||||
async (c) => {
|
||||
const config = c.req.valid("json")
|
||||
await Config.updateGlobal(config)
|
||||
return c.json(await Config.getGlobal())
|
||||
const next = await Config.updateGlobal(config)
|
||||
return c.json(next)
|
||||
},
|
||||
)
|
||||
.post(
|
||||
|
||||
Reference in New Issue
Block a user