mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Merge
This commit is contained in:
commit
31e5d8771b
3 changed files with 46 additions and 24 deletions
|
@ -49,7 +49,7 @@ app.use(bodyParser.json({
|
|||
// --------------------------------------------------------------
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
let parsedUrl = req.url.replace(/%20/g, " ")
|
||||
let parsedUrl = req.url.replace(/%20/g, " ")
|
||||
let curr = listedFiles + '/' + parsedUrl.substring('/'.length, parsedUrl.length).split('?')[0]
|
||||
let relPath = curr.substring('./public/files'.length, curr.length)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue