mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Stuff module path changes
This commit is contained in:
parent
b4b0a8322c
commit
7c4bc687e4
2 changed files with 4 additions and 4 deletions
|
@ -49,7 +49,7 @@ app.use(bodyParser.json({
|
|||
// --------------------------------------------------------------
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
let curr = listedFiles + '/' + req.url.substring('/stuff/'.length, req.url.length).split('?')[0]
|
||||
let curr = listedFiles + '/' + req.url.substring('/'.length, req.url.length).split('?')[0]
|
||||
let relPath = curr.substring('./public/files'.length, curr.length)
|
||||
|
||||
if (relPath[relPath.length - 1] !== '/') { relPath += '/' }
|
||||
|
@ -86,7 +86,7 @@ app.get('/*', function (req, res) {
|
|||
}
|
||||
})
|
||||
|
||||
res.render('stuff/folders', {
|
||||
res.render('folders', {
|
||||
folders: f,
|
||||
dirname: relPath,
|
||||
prevDir
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue