feat(api): jobs routes (list/get/retry/delete, owner-only)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
root
2026-06-01 03:29:52 +10:00
parent 57efa4cbaa
commit ec8517a82c
3 changed files with 114 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ import { router as linksRouter } from './routes/links.js';
import { router as pendingChangesRouter } from './routes/pending_changes.js';
import { router as auditRouter } from './routes/audit.js';
import { router as searchRouter } from './routes/search.js';
import { router as jobsRouter } from './routes/jobs.js';
export function mountApi(app) {
const api = Router();
@@ -47,6 +48,7 @@ export function mountApi(app) {
api.use('/pending-changes', pendingChangesRouter);
api.use('/audit', auditRouter);
api.use('/search', searchRouter);
api.use('/jobs', jobsRouter);
api.use('/:entity_type/:entity_id/tags', tagsByEntityRouter);
api.use((_req, _res, next) => next(new NotFoundError('route not found')));