|
|
@ -20,7 +20,9 @@ app.set('view engine', 'pug'); |
|
|
|
|
|
|
|
|
|
|
|
// uncomment after placing your favicon in /public
|
|
|
|
// uncomment after placing your favicon in /public
|
|
|
|
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); |
|
|
|
app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); |
|
|
|
|
|
|
|
if (env === 'development') { |
|
|
|
app.use(logger('dev')); |
|
|
|
app.use(logger('dev')); |
|
|
|
|
|
|
|
} |
|
|
|
app.use(bodyParser.json()); |
|
|
|
app.use(bodyParser.json()); |
|
|
|
app.use(bodyParser.urlencoded({ extended: false })); |
|
|
|
app.use(bodyParser.urlencoded({ extended: false })); |
|
|
|
app.use(cookieParser()); |
|
|
|
app.use(cookieParser()); |
|
|
|