diff --git a/nodejs/config/inventory.sqlite b/nodejs/config/inventory.sqlite index 13788ae..255b0cb 100644 Binary files a/nodejs/config/inventory.sqlite and b/nodejs/config/inventory.sqlite differ diff --git a/nodejs/routes/discovery.js b/nodejs/routes/discovery.js index 2fb1279..6185aa2 100644 --- a/nodejs/routes/discovery.js +++ b/nodejs/routes/discovery.js @@ -101,7 +101,7 @@ router.get('/me', async (req, res, next) => { // GET /api/discovery/access/:uid[/:slug] // Answers per-user access for a machine caller (e.g. jump-host). -router.get('/access/:uid/:slug?', async (req, res, next) => { +router.get(['/access/:uid', '/access/:uid/:slug'], async (req, res, next) => { try { const { fullMetadata } = await callerView(req); if (!req.user || (!req.user.isMachine && !fullMetadata)) {