Add delete et strike endpoint

This commit is contained in:
Regalijan 2024-02-27 22:57:41 -05:00
parent 90d0a6c729
commit 81857fcaff
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -0,0 +1,9 @@
export async function onRequestDelete(context: RequestContext) {
await context.env.D1.prepare("DELETE FROM et_strikes WHERE id = ?;")
.bind(context.params.id)
.run();
return new Response(null, {
status: 204,
});
}