|
@@ -14,8 +14,7 @@ var app = express();
|
|
app.set('views', path.join(__dirname, 'views'));
|
|
app.set('views', path.join(__dirname, 'views'));
|
|
app.set('view engine', 'jade');
|
|
app.set('view engine', 'jade');
|
|
|
|
|
|
-// uncomment after placing your favicon in /public
|
|
|
|
-//app.use(favicon(__dirname + '/public/favicon.ico'));
|
|
|
|
|
|
+app.use(favicon(__dirname + '/public/favicon.ico'));
|
|
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 }));
|
|
@@ -25,6 +24,7 @@ app.use(express.static(path.join(__dirname, 'public')));
|
|
app.use('/', routes);
|
|
app.use('/', routes);
|
|
app.use('/avatars', avatars);
|
|
app.use('/avatars', avatars);
|
|
|
|
|
|
|
|
+
|
|
// catch 404 and forward to error handler
|
|
// catch 404 and forward to error handler
|
|
app.use(function(req, res, next) {
|
|
app.use(function(req, res, next) {
|
|
var err = new Error('Not Found');
|
|
var err = new Error('Not Found');
|