added bit more advanced file existance checking, removed vhosts in favor or routes

This commit is contained in:
mrfry
2023-03-29 19:10:44 +02:00
parent ba89f4a342
commit 113a114821
24 changed files with 2720 additions and 2474 deletions
-8
View File
@@ -95,14 +95,6 @@ function GetApp(): ModuleType {
logger.LogReq(req)
})
app.get('*', function (_req: Request, res) {
res.status(404).render('404')
})
app.post('*', function (_req: Request, res) {
res.status(404).render('404')
})
return {
app: app,
}