fix: correct path-to-regexp syntax

This commit is contained in:
2026-08-02 18:50:31 -04:00
parent 1cb693a1eb
commit 7da5050ce3
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -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)) {