mioku-service-webui 4.4.3 → 4.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/routes/db.ts +5 -5
package/package.json
CHANGED
package/routes/db.ts
CHANGED
|
@@ -306,10 +306,10 @@ export function createServiceConfigRoutes() {
|
|
|
306
306
|
return c.json({ ok: true, data: overview });
|
|
307
307
|
});
|
|
308
308
|
|
|
309
|
-
app.get("/:name/page", (c) => {
|
|
309
|
+
app.get("/:name/page", async (c) => {
|
|
310
310
|
const name = c.req.param("name");
|
|
311
311
|
const manifest = loadServiceConfigPage(name);
|
|
312
|
-
const configs = getServiceConfigs(name);
|
|
312
|
+
const configs = await getServiceConfigs(name);
|
|
313
313
|
|
|
314
314
|
if (!manifest) {
|
|
315
315
|
return c.json({ ok: true, data: null });
|
|
@@ -329,16 +329,16 @@ export function createServiceConfigRoutes() {
|
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
331
|
|
|
332
|
-
app.get("/:name", (c) => {
|
|
332
|
+
app.get("/:name", async (c) => {
|
|
333
333
|
const name = c.req.param("name");
|
|
334
|
-
return c.json({ ok: true, data: getServiceConfigs(name) });
|
|
334
|
+
return c.json({ ok: true, data: await getServiceConfigs(name) });
|
|
335
335
|
});
|
|
336
336
|
|
|
337
337
|
app.put("/:name/:config", async (c) => {
|
|
338
338
|
const serviceName = c.req.param("name");
|
|
339
339
|
const configName = c.req.param("config");
|
|
340
340
|
const body = await c.req.json();
|
|
341
|
-
updateServiceConfig(serviceName, configName, body);
|
|
341
|
+
await updateServiceConfig(serviceName, configName, body);
|
|
342
342
|
return c.json({ ok: true });
|
|
343
343
|
});
|
|
344
344
|
|