aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-28 13:59:48 +0200
committerChocobozzz <me@florianbigard.com>2018-06-28 15:53:12 +0200
commit8afc19a6121569da054462c7cb351a3f13030a32 (patch)
tree6dba42963681062536e635dd3ca401e1c7b0ca9f /server.ts
parent3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a (diff)
downloadPeerTube-8afc19a6121569da054462c7cb351a3f13030a32.tar.gz
PeerTube-8afc19a6121569da054462c7cb351a3f13030a32.tar.zst
PeerTube-8afc19a6121569da054462c7cb351a3f13030a32.zip
Add ability to choose the language
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index fb01ed572..5511c5435 100644
--- a/server.ts
+++ b/server.ts
@@ -12,6 +12,7 @@ import * as bodyParser from 'body-parser'
12import * as express from 'express' 12import * as express from 'express'
13import * as morgan from 'morgan' 13import * as morgan from 'morgan'
14import * as cors from 'cors' 14import * as cors from 'cors'
15import * as cookieParser from 'cookie-parser'
15 16
16process.title = 'peertube' 17process.title = 'peertube'
17 18
@@ -112,6 +113,8 @@ app.use(bodyParser.json({
112 type: [ 'application/json', 'application/*+json' ], 113 type: [ 'application/json', 'application/*+json' ],
113 limit: '500kb' 114 limit: '500kb'
114})) 115}))
116// Cookies
117app.use(cookieParser())
115 118
116// ----------- Views, routes and static files ----------- 119// ----------- Views, routes and static files -----------
117 120