Catalog collect: per-IP budget and fill-only writes; bulk import moves to an admin/API-token route

This commit is contained in:
Jonathan Sykes
2026-10-16 12:20:39 +08:00
parent 92432e4d83
commit 1f79750ec5
3 changed files with 50 additions and 7 deletions

View File

@@ -366,7 +366,8 @@ const requestMonitor = createRequestMonitor({
},
});
if (process.env.OPS_MONITOR !== '0') app.use('*', requestMonitor.middleware());
registerCatalogRoutes(app, { resolveListener: recommendationListener });
registerCatalogRoutes(app, { resolveListener: recommendationListener,
adminAuth: (c, next) => notes.requireAdminOrToken(c, next) }); // notes is registered further down
// ============================================================================
// API routes