Moved pack info to component

This commit is contained in:
2024-10-19 10:00:13 -06:00
parent e03e8809b7
commit 9498f16c28
7 changed files with 92 additions and 44 deletions

View File

@@ -98,7 +98,7 @@ router.route("/api/world")
using store = new BearMetalStore();
const worldPath = store.get("world") as string;
if (!worldPath) return new Response(null, { status: 400 });
return serveFile(req, worldPath);
return new Response(worldPath.split("/").pop() as string, { status: 200 });
});
router.route("/api/pack")