diff options
Diffstat (limited to 'server.js')
-rwxr-xr-x | server.js | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -4,7 +4,6 @@ | |||
4 | 4 | ||
5 | var express = require('express'), | 5 | var express = require('express'), |
6 | morgan = require('morgan'), | 6 | morgan = require('morgan'), |
7 | passport = require('passport'), | ||
8 | path = require('path'), | 7 | path = require('path'), |
9 | fs = require('fs'), | 8 | fs = require('fs'), |
10 | compression = require('compression'), | 9 | compression = require('compression'), |
@@ -91,8 +90,6 @@ app.use('/api', bodyParser.json()); | |||
91 | app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' })); | 90 | app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' })); |
92 | app.use('/api', cookieParser()); | 91 | app.use('/api', cookieParser()); |
93 | app.use('/api', session({ secret: 'surfin surfin', resave: false, saveUninitialized: false })); | 92 | app.use('/api', session({ secret: 'surfin surfin', resave: false, saveUninitialized: false })); |
94 | app.use('/api', passport.initialize()); | ||
95 | app.use('/api', passport.session()); | ||
96 | app.use(router); | 93 | app.use(router); |
97 | app.use(webdav.extensions.express('/_webdav', webdavServer)); | 94 | app.use(webdav.extensions.express('/_webdav', webdavServer)); |
98 | app.use('/_admin', express.static(__dirname + '/frontend')); | 95 | app.use('/_admin', express.static(__dirname + '/frontend')); |