websocketiot
Advanced tools
Comparing version
@@ -171,3 +171,3 @@ import { objify, getUniqueID, stringify, extension, fileName, isType, } from './common.js'; | ||
return; | ||
import(`${routersPath}/${file}`).then(module => app.use(`/${fileName(file)}`, module.router)); | ||
import(`${"file://" + routersPath.replaceAll("\\", "/").replaceAll(" ", "%20")}/${file}`).then(module => app.use(`/${fileName(file)}`, module.router)); | ||
}); | ||
@@ -174,0 +174,0 @@ }); |
{ | ||
"name": "websocketiot", | ||
"version": "1.6.2", | ||
"version": "1.6.3", | ||
"description": "npm module for creating node.js-esp websocket IOT project", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -180,3 +180,3 @@ import { | ||
initOnStart:boolean, | ||
initOnStart: boolean, | ||
} | ||
@@ -227,3 +227,3 @@ | ||
return; | ||
import(`${routersPath}/${file}`).then(module => app.use(`/${fileName(file)}`, module.router)); | ||
import(`${"file://" + routersPath.replaceAll("\\", "/").replaceAll(" ", "%20")}/${file}`).then(module => app.use(`/${fileName(file)}`, module.router)); | ||
} | ||
@@ -230,0 +230,0 @@ ) |
Sorry, the diff of this file is not supported yet
47754
0.41%