(req: any)
| 4 | import { ApiKeysService } from 'services/api-keys'; |
| 5 | |
| 6 | function getInternalApiKey(req: any) { |
| 7 | const authorizationHeader = |
| 8 | req.headers instanceof Headers |
| 9 | ? req.headers.get('x-api-internal') |
| 10 | : req.headers['x-api-internal']; |
| 11 | |
| 12 | if (!authorizationHeader) return null; |
| 13 | return decodeURIComponent(authorizationHeader); |
| 14 | } |
| 15 | |
| 16 | function getApiKey(req: any) { |
| 17 | const authorizationHeader = |
no test coverage detected