From f5f2a6996c81b972a4337b64f2aa84ad486b508f Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Sun, 24 Feb 2019 22:45:32 +0100 Subject: Put webdav under /_webdav to avoid name clash --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); 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) { -- cgit v1.2.3