fix: preserve server startedAt from wrapper status

This commit is contained in:
2026-07-21 19:29:06 +02:00
parent 6d22275a1f
commit 984992541c
39 changed files with 2299 additions and 97 deletions
+2 -2
View File
@@ -26,7 +26,7 @@ export function registerRoutes(server: { on: (event: string, listener: (...args:
}
if (pathname.startsWith("/api/wrappers/")) {
const id = pathname.split("/").pop() ?? "";
const id = decodeURIComponent(pathname.split("/").pop() ?? "");
const wrapper = api.getWrapper(id);
if (!wrapper) {
@@ -47,7 +47,7 @@ export function registerRoutes(server: { on: (event: string, listener: (...args:
}
if (pathname.startsWith("/api/servers/")) {
const id = pathname.split("/").pop() ?? "";
const id = decodeURIComponent(pathname.split("/").pop() ?? "");
const server = api.getServer(id);
if (!server) {