Spaces:
Runtime error
Runtime error
File size: 349 Bytes
4782147 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import { getSession } from "auth/server";
import { workflowRepository } from "lib/db/repository";
export async function GET() {
const session = await getSession();
if (!session) {
return Response.json([]);
}
const workflows = await workflowRepository.selectExecuteAbility(
session.user.id,
);
return Response.json(workflows);
}
|