Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
PUBLIC
/
surfer-okd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f5f2a699
authored
6 years ago
by
Johannes Zellner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Put webdav under /_webdav to avoid name clash
1 parent
26fd90fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
server.js
server.js
View file @
f5f2a69
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment