This commit is contained in:
Timo Hocker 2020-01-08 08:42:55 +01:00
parent 78dfe76a43
commit bed627ad82

View File

@ -27,6 +27,7 @@ module.exports = function main (
for (const f of fs.readdirSync (modulefolder)) {
const regex = /(?<method>.*?)-(?<url>.*?)\.js/u;
const { groups } = regex.exec (f);
if ('undefined' !== typeof subdir)
groups.url = `/${subdir}/${groups.url}/`;
groups.url = groups.url
.replace (/^\/[^/]*\/root/iu, '/')