diff options
author | Johannes Zellner <johannes@cloudron.io> | 2019-02-24 22:45:32 +0100 |
---|---|---|
committer | Johannes Zellner <johannes@cloudron.io> | 2019-02-24 22:45:32 +0100 |
commit | f5f2a6996c81b972a4337b64f2aa84ad486b508f (patch) | |
tree | 895deb8e1e027bc1fc91bb528169fec2873a7960 | |
parent | 26fd90fa1025c98327f60335d19ddd867e130f2a (diff) | |
download | Surfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.tar.gz Surfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.tar.zst Surfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.zip |
Put webdav under /_webdav to avoid name clash
-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) { |