MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / POST

Function POST

packages/sveltekit/src/index.ts:7–16  ·  view source on GitHub ↗
({ request })

Source from the content-addressed store, hash-verified

5
6export function createSvelteRoute(client: TriggerClient) {
7 const POST: RequestHandler = async ({ request }) => {
8 const standardizedRequest = await convertToStandardRequest(request);
9 const response = await client.handleRequest(standardizedRequest);
10
11 if (!response) {
12 return json({ error: "Resource not found" }, { status: 404 });
13 }
14
15 return json(response.body, { status: response.status, headers: response.headers });
16 };
17 return { POST };
18}
19

Callers

nothing calls this directly

Calls 3

jsonFunction · 0.85
convertToStandardRequestFunction · 0.70
handleRequestMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…