Files
foka-ci/apps/server/controllers/application.ts
2025-08-28 23:25:59 +08:00

12 lines
230 B
TypeScript

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;
}