feat: add backend

This commit is contained in:
2025-08-28 23:25:59 +08:00
parent 2edf8753a7
commit 47f36cd625
29 changed files with 1489 additions and 253 deletions

View File

@@ -0,0 +1,11 @@
import type { Context } from 'koa';
import prisma from '../libs/db.ts';
export async function list(ctx: Context) {
const list = await prisma.application.findMany({
where: {
valid: 1,
},
});
ctx.body = list;
}