MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / buildJobs

Function buildJobs

apps/worker/src/boot-debug.ts:43–49  ·  view source on GitHub ↗
(req: Request)

Source from the content-addressed store, hash-verified

41}
42
43function buildJobs(req: Request) {
44 const baseUrl = `${req.protocol}://${req.get('host')}`;
45 return CRON_TYPES.map((type) => ({
46 type,
47 url: `${baseUrl}/debug/cron/${type}`,
48 }));
49}
50
51// Browsers send an explicit `text/html` accept, curl sends `*/*`. Listing json
52// first means the wildcard falls back to json while a browser still gets html.

Callers 1

bootDebugRoutesFunction · 0.85

Calls 2

getMethod · 0.45
mapMethod · 0.45

Tested by

no test coverage detected