Moved pack info to component
This commit is contained in:
@@ -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")
|
||||
|
Reference in New Issue
Block a user