Add delete et strike endpoint
This commit is contained in:
parent
90d0a6c729
commit
81857fcaff
9
functions/api/events-team/strikes/[id].ts
Normal file
9
functions/api/events-team/strikes/[id].ts
Normal 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,
|
||||
});
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user