jesus christ
This commit is contained in:
1 parent
d97600122e
commit
49309d6733
9 files changed
+505
-295
No files matched your search
@@ -18,7 +18,12 @@ app.set('views', path.join(__dirname, 'views'));
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use(bodyParser.urlencoded({ extended: true }));
|
||||
app.use(bodyParser.json());
|
||||
app.use(morgan('dev'));
|
||||
|
||||
// Morgan: log only non-static requests
|
||||
app.use(morgan(':method :url :status :res[content-length] - :response-time ms', {
|
||||
skip: (req) => req.url.startsWith('/assets') || req.url.startsWith('/favicon.ico')
|
||||
}));
|
||||
|
||||
|
||||
// Routes
|
||||
app.use('/', indexRouter);
|
||||
|
||||
Reference in new issue
Block a user