aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@cloudron.io>2019-02-24 22:45:32 +0100
committerJohannes Zellner <johannes@cloudron.io>2019-02-24 22:45:32 +0100
commitf5f2a6996c81b972a4337b64f2aa84ad486b508f (patch)
tree895deb8e1e027bc1fc91bb528169fec2873a7960
parent26fd90fa1025c98327f60335d19ddd867e130f2a (diff)
downloadSurfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.tar.gz
Surfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.tar.zst
Surfer-f5f2a6996c81b972a4337b64f2aa84ad486b508f.zip
Put webdav under /_webdav to avoid name clash
-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) {