Viele Updates, Version angepasst

This commit is contained in:
2023-11-12 11:26:15 +00:00
parent 5dc66dbaa2
commit a79f6add1a
14 changed files with 127 additions and 25 deletions
+4
View File
@@ -38,6 +38,9 @@ app.set('view engine', 'pug');
app.get('*', (req, res, next) => {
const subdom = req.headers.host.split('.')
if (subdom[0] === 'laerm') {
subdom[0] = 'noise'
}
app.set('category',subdom[0])
next()
})
@@ -49,6 +52,7 @@ app.use(cookieParser());
app.use(express.static(path.join(__dirname, 'public')));
app.use('/api', apiRouter)
app.use('/srv', apiRouter)
app.use('/', indexRouter.router);
// catch 404 and forward to error handler