Redirect changes (removed .html)

This commit is contained in:
mrfry 2020-11-07 09:01:49 +01:00
parent 8e618f8457
commit f0ccc20c5d
2 changed files with 5 additions and 5 deletions

View file

@ -159,9 +159,9 @@ function GetApp() {
// --------------------------------------------------------------
function AddHtmlRoutes(files) {
const routes = files.reduce((acc, f) => {
if (f.includes('html')) {
acc.push(f.split('.')[0])
const routes = files.reduce((acc, file) => {
if (file.includes('html')) {
acc.push(file.split('.')[0])
return acc
}
return acc
@ -171,7 +171,7 @@ function GetApp() {
logger.DebugLog(`Added route /${route}`, 'Qmining routes', 1)
app.get(`/${route}`, function(req, res) {
logger.LogReq(req)
res.redirect(`${route}.html`)
res.redirect(`${route}`)
})
})
}

@ -1 +1 @@
Subproject commit 9aa0c111ce056d5309a8fc095ccb3745bc03f77f
Subproject commit 36a564498b5e7fd513c76ca0547929bfe263bc9f