This commit is contained in:
ale 2020-05-25 22:02:42 +02:00
parent 59013cd3c1
commit c1a87347d9

View File

@ -17,8 +17,7 @@ const config = require('./config'),
privilegeManager.setRights(user, '/', ['all'])
app.disable('x-powered-by')
.use('/', webdav.extensions.express('/dav', server))
.use(express.static(__dirname + '/public'), serveIndex('public/', { 'icons': true, view: 'details' }))
.use(webdav.extensions.express('/dav', server), express.static(__dirname + '/public'), serveIndex('public/', { 'icons': true, view: 'details' }))
.listen(config.port, () => {
console.log('Listening om: ::' + config.port)
console.log('Listening on: ::' + config.port)
})