Seperate dbs

This commit is contained in:
mrfry 2020-11-26 09:16:12 +01:00
parent 728931d56e
commit 4e34267d44
9 changed files with 149 additions and 82 deletions

View file

@ -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 +
'/' +