diff options
-rwxr-xr-x | server.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -87,7 +87,6 @@ router.get ('/api/healthcheck', function (req, res) { res.status(200).send(); | |||
87 | 87 | ||
88 | app.use(morgan('dev')); | 88 | app.use(morgan('dev')); |
89 | app.use(compression()); | 89 | app.use(compression()); |
90 | app.use(webdav.extensions.express('/webdav', webdavServer)); | ||
91 | app.use('/api', bodyParser.json()); | 90 | app.use('/api', bodyParser.json()); |
92 | app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' })); | 91 | app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' })); |
93 | app.use('/api', cookieParser()); | 92 | app.use('/api', cookieParser()); |
@@ -95,6 +94,7 @@ app.use('/api', session({ secret: 'surfin surfin', resave: false, saveUninitiali | |||
95 | app.use('/api', passport.initialize()); | 94 | app.use('/api', passport.initialize()); |
96 | app.use('/api', passport.session()); | 95 | app.use('/api', passport.session()); |
97 | app.use(router); | 96 | app.use(router); |
97 | app.use(webdav.extensions.express('/_webdav', webdavServer)); | ||
98 | app.use('/_admin', express.static(__dirname + '/frontend')); | 98 | app.use('/_admin', express.static(__dirname + '/frontend')); |
99 | app.use('/', express.static(ROOT_FOLDER)); | 99 | app.use('/', express.static(ROOT_FOLDER)); |
100 | app.use('/', function welcomePage(req, res, next) { | 100 | app.use('/', function welcomePage(req, res, next) { |