Skip to content
Permalink
71381e937b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
1 contributor

Users who have contributed to this file

13 lines (9 sloc) 313 Bytes
import { jsonError } from "../../common.js";
export async function onRequestPost(context: RequestContext) {
const { user } = context.data.body;
if (!user) return jsonError("No user provided", 400);
await context.env.DATA.delete(`gamemod_${user}`);
return new Response(null, {
status: 204,
});
}