mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-08-22 16:47:16 -05:00
Logger
This commit is contained in:
@@ -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"
|
||||
},
|
||||
{
|
||||
|
||||
@@ -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}`);
|
||||
});
|
||||
Reference in New Issue
Block a user