@sap-ux/adp-tooling
Advanced tools
Comparing version 0.8.8 to 0.8.9
@@ -109,5 +109,7 @@ "use strict"; | ||
else { | ||
const files = yield this.project.byGlob(req.path); | ||
// check if the requested file exists in the file system (replace .js with .* for typescript) | ||
const files = yield this.project.byGlob(req.path.replace('.js', '.*')); | ||
if (files.length === 1) { | ||
res.status(200).send(yield files[0].getString()); | ||
// redirect to the exposed path so that other middlewares can handle it | ||
res.redirect(302, req.path); | ||
} | ||
@@ -114,0 +116,0 @@ else { |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"version": "0.8.8", | ||
"version": "0.8.9", | ||
"license": "Apache-2.0", | ||
@@ -50,3 +50,3 @@ "author": "@SAP/ux-tools-team", | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.17.2", | ||
"@sap-ux/project-access": "1.17.3", | ||
"@sap-ux/store": "0.4.2" | ||
@@ -53,0 +53,0 @@ }, |
69904
1211