Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

lib/apiserver/index.js
... ... @@ -88,7 +88,13 @@ async function pageHistory(req, res) {
88 88 }
89 89  
90 90 app.use(function(req, res, next) {
91   - if ( req && req.path && typeof req.path === 'string' && req.path.search(/\/modems\/set$/) >= 0 ) {
  91 + if (
  92 + req && req.path && typeof req.path === 'string'
  93 + && (
  94 + req.path.search(/\/modems$/) >= 0
  95 + || req.path.search(/\/modems\/set$/) >= 0
  96 + )
  97 + ) {
92 98 next();
93 99 return;
94 100 }
1 1 {
2 2 "name": "komodo-center-sms",
3   - "version": "0.9.30",
  3 + "version": "0.9.31",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
1 1 {
2 2 "name": "komodo-center-sms",
3   - "version": "0.9.30",
  3 + "version": "0.9.31",
4 4 "description": "SMS center for Komodo",
5 5 "main": "index.js",
6 6 "scripts": {