Create get all appeal bans endpoint
This commit is contained in:
parent
9fe710b32d
commit
5272c777a8
9
functions/api/appeals/bans.ts
Normal file
9
functions/api/appeals/bans.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { jsonResponse } from "../../common.js";
|
||||
|
||||
export async function onRequestGet(context: RequestContext) {
|
||||
const { results } = await context.env.D1.prepare(
|
||||
"SELECT * FROM appeal_bans;",
|
||||
).all();
|
||||
|
||||
return jsonResponse(JSON.stringify(results));
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user