Commit f5f2a699 by Johannes Zellner

Put webdav under /_webdav to avoid name clash

1 parent 26fd90fa
Showing with 1 additions and 1 deletions
......@@ -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) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!