mirror of
https://github.com/Metastem/wikiless
synced 2024-12-06 19:16:58 +01:00
add route for wiki-pages which start with a forward slash (fixes #21)
This commit is contained in:
@@ -66,6 +66,11 @@ module.exports = (app, utils) => {
|
||||
return handleWikiPage(req, res, '/wiki/')
|
||||
})
|
||||
|
||||
// This route handles wiki-pages starting with forward slash (issue #21))
|
||||
app.get('/wiki//:page?/:sub_page?', (req, res, next) => {
|
||||
return handleWikiPage(req, res, '/wiki/')
|
||||
})
|
||||
|
||||
app.get('/w/:file', (req, res, next) => {
|
||||
return handleWikiPage(req, res, '/w/')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user