diff --git a/app/src/routes/runtime/+server.ts b/app/src/routes/runtime/server.ts similarity index 90% rename from app/src/routes/runtime/+server.ts rename to app/src/routes/runtime/server.ts index 67d9cbf..aee6d48 100644 --- a/app/src/routes/runtime/+server.ts +++ b/app/src/routes/runtime/server.ts @@ -14,6 +14,10 @@ export const POST: RequestHandler = async ({ request, fetch }) => { const { graph, settings } = await request.json(); + if (!graph || !settings) { + return new Response("Invalid request", { status: 400 }); + } + registry.fetch = fetch; await registry.load(graph.nodes.map(node => node.type))