aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-29 13:18:05 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-29 13:18:05 +0100
commit86d13ec2aa94ec10810ddf9c8b33314bd4968791 (patch)
tree5c4175325362df2a92e367dc4077e53a700bfbad /server.ts
parent165cdc75bf1942ed687f78094c2bd366839a7c99 (diff)
downloadPeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.tar.gz
PeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.tar.zst
PeerTube-86d13ec2aa94ec10810ddf9c8b33314bd4968791.zip
Users list only available when use is authenticated
And has a special right
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 0e963c3d3..3221c1790 100644
--- a/server.ts
+++ b/server.ts
@@ -77,7 +77,7 @@ app.use(morgan('combined', {
77})) 77}))
78// For body requests 78// For body requests
79app.use(bodyParser.json({ 79app.use(bodyParser.json({
80 type: 'application/*+json', 80 type: [ 'application/json', 'application/*+json' ],
81 limit: '500kb' 81 limit: '500kb'
82})) 82}))
83app.use(bodyParser.urlencoded({ extended: false })) 83app.use(bodyParser.urlencoded({ extended: false }))