integrate the user module
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import express from 'express'
|
||||
import session from 'express-session';
|
||||
import passport from 'passport';
|
||||
import compression from 'compression';
|
||||
import MongoDBStore from 'connect-mongodb-session';
|
||||
import https from 'https';
|
||||
@@ -57,6 +58,9 @@ class WebServer {
|
||||
// next();
|
||||
// })
|
||||
|
||||
xapp.use(passport.initialize());
|
||||
xapp.use(passport.session());
|
||||
|
||||
xapp.use(express.json({ limit: '150mb' }));
|
||||
xapp.use(express.urlencoded({ extended: false, limit: '150mb' }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user