diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-06-10 22:15:25 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-06-10 22:15:25 +0200 |
commit | 69818c9394366b954b6ba3bd697bd9d2b09f2a16 (patch) | |
tree | ad199a18ec3c322460d6f9523fc383ee562554e0 /server/controllers/api/clients.ts | |
parent | 4d4e5cd4dca78480ec7f40e747f424cd107376a4 (diff) | |
download | PeerTube-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.ts | 4 |
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 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | 2 | ||
3 | import { CONFIG } from '../../initializers'; | 3 | import { CONFIG } from '../../initializers' |
4 | import { logger } from '../../helpers' | 4 | import { logger } from '../../helpers' |
5 | import { database as db } from '../../initializers/database' | 5 | import { database as db } from '../../initializers/database' |
6 | 6 | ||
@@ -9,7 +9,7 @@ const clientsRouter = express.Router() | |||
9 | clientsRouter.get('/local', getLocalClient) | 9 | clientsRouter.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 |
12 | function getLocalClient (req, res, next) { | 12 | function 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 |