use new plugin bundle format

This commit is contained in:
Sebastian Sdorra
2019-10-07 17:06:00 +02:00
parent c05798e254
commit 6e99182b4e
22 changed files with 1239 additions and 3183 deletions

View File

@@ -0,0 +1,11 @@
function crateContextPathMiddleware(contextPath) {
return function(req, resp, next) {
const url = req.url;
if (url.indexOf(contextPath) === 0) {
req.url = url.substr(contextPath.length);
}
next();
}
}
module.exports = crateContextPathMiddleware;