diff --git a/lib/apiserver/index.js b/lib/apiserver/index.js index 152edc5..57ae394 100644 --- a/lib/apiserver/index.js +++ b/lib/apiserver/index.js @@ -88,7 +88,13 @@ async function pageHistory(req, res) { } app.use(function(req, res, next) { - if ( req && req.path && typeof req.path === 'string' && req.path.search(/\/modems\/set$/) >= 0 ) { + if ( + req && req.path && typeof req.path === 'string' + && ( + req.path.search(/\/modems$/) >= 0 + || req.path.search(/\/modems\/set$/) >= 0 + ) + ) { next(); return; }