Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Create get all appeal bans endpoint
  • Loading branch information
regalijan committed Oct 30, 2023
1 parent 9fe710b commit 5272c77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functions/api/appeals/bans.ts
@@ -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));
}

0 comments on commit 5272c77

Please sign in to comment.