aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/clients.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-10 22:15:25 +0200
commit69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch)
treead199a18ec3c322460d6f9523fc383ee562554e0 /server/controllers/api/clients.ts
parent4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff)
downloadPeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.gz
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.tar.zst
PeerTube-69818c9394366b954b6ba3bd697bd9d2b09f2a16.zip
Type functions
Diffstat (limited to 'server/controllers/api/clients.ts')
-rw-r--r--server/controllers/api/clients.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/controllers/api/clients.ts b/server/controllers/api/clients.ts
index f6499556a..8c460096b 100644
--- a/server/controllers/api/clients.ts
+++ b/server/controllers/api/clients.ts
@@ -1,6 +1,6 @@
1import * as express from 'express' 1import * as express from 'express'
2 2
3import { CONFIG } from '../../initializers'; 3import { CONFIG } from '../../initializers'
4import { logger } from '../../helpers' 4import { logger } from '../../helpers'
5import { database as db } from '../../initializers/database' 5import { database as db } from '../../initializers/database'
6 6
@@ -9,7 +9,7 @@ const clientsRouter = express.Router()
9clientsRouter.get('/local', getLocalClient) 9clientsRouter.get('/local', getLocalClient)
10 10
11// Get the client credentials for the PeerTube front end 11// Get the client credentials for the PeerTube front end
12function getLocalClient (req, res, next) { 12function getLocalClient (req: express.Request, res: express.Response, next: express.NextFunction) {
13 const serverHostname = CONFIG.WEBSERVER.HOSTNAME 13 const serverHostname = CONFIG.WEBSERVER.HOSTNAME
14 const serverPort = CONFIG.WEBSERVER.PORT 14 const serverPort = CONFIG.WEBSERVER.PORT
15 let headerHostShouldBe = serverHostname 15 let headerHostShouldBe = serverHostname