Skip to content

Commit

Permalink
BUGFIX -- forgot to add body-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
rohan-git committed Nov 28, 2017
1 parent 0aef42d commit a7b2682
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const express = require('express');
const bodyParser = require('body-parser');

const mongoose = require('mongoose');
const cookieSession = require('cookie-session');
const passport = require('passport');
Expand All @@ -17,6 +19,8 @@ const app = express();

console.log('started expressJS ... ');

app.use(bodyParser.json());

app.use(cookieSession({
maxAge: 30 * 24 * 60 * 60 * 1000,
keys: [keys.cookieKey]
Expand Down

0 comments on commit a7b2682

Please sign in to comment.