Remove old game mod management modal
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
import { jsonResponse } from "../../common.js";
|
||||
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
const list = await context.env.DATA.list({ prefix: "gamemod_" });
|
||||
const entries = [];
|
||||
|
||||
for (const key of list.keys)
|
||||
entries.push({
|
||||
metadata: key.metadata,
|
||||
user: key.name.replace("gamemod_", ""),
|
||||
});
|
||||
|
||||
return jsonResponse(JSON.stringify(entries));
|
||||
}
|
||||
Reference in New Issue
Block a user