...
|
...
|
@@ -6,7 +6,6 @@ |
|
|
|
|
|
var express = require('express'),
|
|
|
path = require('path'),
|
|
|
hbs = require('express-handlebars'),
|
|
|
bodyParser = require('body-parser'),
|
|
|
favicon = require('serve-favicon'),
|
|
|
cookieParser = require('cookie-parser');
|
...
|
...
|
@@ -15,10 +14,11 @@ var app = express(); |
|
|
|
|
|
app.set('view engine', '.hbs');
|
|
|
|
|
|
app.use(favicon(path.join(__dirname, '/public/favicon.ico')));
|
|
|
app.use(express.static(path.join(__dirname, 'public')));
|
|
|
app.use(bodyParser.json());
|
|
|
app.use(bodyParser.urlencoded({extended: false}));
|
|
|
app.use(cookieParser());
|
|
|
app.use(express.static(path.join(__dirname, 'public')));
|
|
|
|
|
|
// dispatcher
|
|
|
require('./dispatch')(app);
|
...
|
...
|
|