Skip to content

@saflib/jobs-http


Function: createJobsRouter()

createJobsRouter(options): Router

Admin jobs router for monolith chrome (list/get/cancel-by-chain). Only handles /jobs/* — other paths fall through so sibling chrome routers (e.g. cron) can run. Error middleware is scoped to /jobs for the same reason.

Parameters

ParameterType
optionsCreateJobsRouterOptions

Returns

Router