add framework for sessions

This commit is contained in:
catarak 2016-05-13 16:49:56 -04:00
parent 62ef5556bd
commit 06ff0e3e31

View file

@ -26,6 +26,7 @@ import users from './routes/user.routes';
//Body parser, cookie parser, sessions, serve public assets
//Body parser, cookie parser, sessions, serve public assets
app.use(Express.static(path.resolve(__dirname, '../static')));
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());
app.use(cookieParser());