mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Seperate dbs
This commit is contained in:
parent
728931d56e
commit
4e34267d44
9 changed files with 149 additions and 82 deletions
|
@ -74,7 +74,7 @@ function GetApp(): ModuleType {
|
|||
// app, '/*.mp4', 'video/mp4', 'stuff/video'
|
||||
function appGetFileType(app, wildcard, contentType, pageToRender) {
|
||||
app.get(wildcard, function(req, res) {
|
||||
const path = decodeURI(req.url)
|
||||
const path = decodeURIComponent(req.url)
|
||||
let fp: any = path
|
||||
if (path.includes('?')) {
|
||||
fp = path.split('?')
|
||||
|
@ -151,7 +151,7 @@ function GetApp(): ModuleType {
|
|||
})
|
||||
|
||||
app.get('/*', function(req, res) {
|
||||
const parsedUrl = decodeURI(req.url)
|
||||
const parsedUrl = decodeURIComponent(req.url)
|
||||
let curr =
|
||||
listedFiles +
|
||||
'/' +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue