This commit is contained in:
Jip Fr
2021-03-16 21:30:45 +01:00
parent d66cfdd10b
commit 98cbb81c33
2 changed files with 9 additions and 2 deletions

View File

@@ -95,7 +95,7 @@
{
"name": "Rambo6Glaz",
"caption": "Network installer and console research",
"picture": "https://github.com/NexoDevelopment.png",
"picture": "https://github.com/Rambo6Glaz.png",
"github": "https://github.com/NexoDevelopment"
},
{

View File

@@ -11,6 +11,11 @@ const routers = {
faq: require('./routers/faq')
};
app.use('*', (req, res, next) => {
logger.info(`${req.method.toUpperCase()} ${req.path}`);
next();
});
app.use('/', routers.home);
app.use('/faq', routers.faq);
@@ -44,4 +49,6 @@ app.set('view engine', 'handlebars');
app.use(express.static('public'));
app.listen(cfg.http.port);
app.listen(cfg.http.port, () => {
logger.info(`Server listening on *:${cfg.http.port}`);
});