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