From 7da5050ce3f34109b327eb50f40795e79dc65a0c Mon Sep 17 00:00:00 2001 From: William Mantly Date: Sun, 2 Aug 2026 18:50:31 -0400 Subject: [PATCH] fix: correct path-to-regexp syntax --- nodejs/config/inventory.sqlite | Bin 69632 -> 69632 bytes nodejs/routes/discovery.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/config/inventory.sqlite b/nodejs/config/inventory.sqlite index 13788ae8d8efa1c376fc32ac01d9e09b5a411292..255b0cba01b80cb71fc6606b1e8a02d8b766f5bf 100644 GIT binary patch delta 848 zcma))PiqrF7{+&-h^Y#z*eWzzT1vozzA}GzX1s|63DSc|j}muwc0?#K(DtAgbMsmm z(4#4S0I3!9J7|nY4<7sm`3B;w`RhU0+0)BD^FHtId8gN}_WISMdf0pw-wB&1k3N2B z2ui8enu4)u4h%~T(h>taF+_@#8O(C`eX#0wzOG!rNGT-{Z9lcv9S`v`N4F5VNoDfp zq!zBWX65E}RQw5o3frx3)SJs2w}bI%weo}ut`Z7FVgW423Uq1^AWAbr1T_?kzm98z z%jf5gox-p-aY)>8d}ZpMD0ei78=1;-q8SDyl>{b?21RoTT&GA_%u;Xb``(CVJ@vB( zdxwt~K^Xc6grONo_}YW4-(3W;sWl|C2B^&`Fe^A{jT9io7|If)uo{DW{IKR5@2eJqSv43bF#jEjs>ogtKEt~TN|Ywkx|~nKy98Uw>C-byY8XUS<~+FTB4~Cd4JL z+%A*KhhKZqy=f}NBQ2(Wd64fPw7Y)OPdaTZBo}ie zdOjE5TQADxM*wR8QB-4F&86o0{L+)?^4i#79%Pzmi#YcwVoqu#jbtd?3bdp~VqK^$ z3~pbas&&g^gcM@4L5z^>c+hG)z}7koVQEYe6OJH7v_wWIp;OKhXL5$ejmgAx|K-l! z>+)2%oSGv5nIOa`0b%i389}9tQ;-3{C_qd}gQUd_QLU{4pIR(rf$;5T$uPUuE2%M= zj2S|i!LZe~k{O+*4uSF{xchuHlvm4N z%RRptMGY3tVSX-d^&d3et<<*SDxuGY&p%bks~#E;szgu=jW0H<_%{Kr)EdK+ycHTSy 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)) {