add framework for sessions
This commit is contained in:
parent
62ef5556bd
commit
06ff0e3e31
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue