]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/commitdiff
Put webdav under /_webdav to avoid name clash
authorJohannes Zellner <johannes@cloudron.io>
Sun, 24 Feb 2019 21:45:32 +0000 (22:45 +0100)
committerJohannes Zellner <johannes@cloudron.io>
Sun, 24 Feb 2019 21:45:32 +0000 (22:45 +0100)
server.js

index ec123e90a5ead763504202991256bc8329008dbb..e3d92e1c4e2af49747bd8e7a39e583c6fe8858b5 100755 (executable)
--- a/server.js
+++ b/server.js
@@ -87,7 +87,6 @@ router.get   ('/api/healthcheck', function (req, res) { res.status(200).send();
 
 app.use(morgan('dev'));
 app.use(compression());
-app.use(webdav.extensions.express('/webdav', webdavServer));
 app.use('/api', bodyParser.json());
 app.use('/api', bodyParser.urlencoded({ extended: false, limit: '100mb' }));
 app.use('/api', cookieParser());
@@ -95,6 +94,7 @@ app.use('/api', session({ secret: 'surfin surfin', resave: false, saveUninitiali
 app.use('/api', passport.initialize());
 app.use('/api', passport.session());
 app.use(router);
+app.use(webdav.extensions.express('/_webdav', webdavServer));
 app.use('/_admin', express.static(__dirname + '/frontend'));
 app.use('/', express.static(ROOT_FOLDER));
 app.use('/', function welcomePage(req, res, next) {