diff --git a/packages/polydev/src/middleware/notFound/index.js b/packages/polydev/src/middleware/notFound/index.js index 538c5a8..46c7ab5 100644 --- a/packages/polydev/src/middleware/notFound/index.js +++ b/packages/polydev/src/middleware/notFound/index.js @@ -27,6 +27,10 @@ module.exports = express() return next() } + const filepath = path + .join(process.cwd(), "routes", req.path, "index.js") + .replace(process.cwd(), ".") + res.status(404).send(` @@ -50,9 +54,7 @@ module.exports = express() - +