diff options
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 |