diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-28 13:59:48 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-28 15:53:12 +0200 |
commit | 8afc19a6121569da054462c7cb351a3f13030a32 (patch) | |
tree | 6dba42963681062536e635dd3ca401e1c7b0ca9f /server.ts | |
parent | 3ea9a1c311c3e3c55fb95560d4dd99a77c52df4a (diff) | |
download | PeerTube-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.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -12,6 +12,7 @@ import * as bodyParser from 'body-parser' | |||
12 | import * as express from 'express' | 12 | import * as express from 'express' |
13 | import * as morgan from 'morgan' | 13 | import * as morgan from 'morgan' |
14 | import * as cors from 'cors' | 14 | import * as cors from 'cors' |
15 | import * as cookieParser from 'cookie-parser' | ||
15 | 16 | ||
16 | process.title = 'peertube' | 17 | process.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 | ||
117 | app.use(cookieParser()) | ||
115 | 118 | ||
116 | // ----------- Views, routes and static files ----------- | 119 | // ----------- Views, routes and static files ----------- |
117 | 120 | ||