(value: string, label: string)
| 266 | } |
| 267 | |
| 268 | function normalizeToken(value: string, label: string): string { |
| 269 | const token = value.trim(); |
| 270 | if (!token) { |
| 271 | throw new AppError('INVALID_ARGS', `Proxy ${label} is required.`); |
| 272 | } |
| 273 | return token; |
| 274 | } |
| 275 | |
| 276 | function resolveProxyRoute(requestUrl: string): string { |
| 277 | const pathname = new URL(requestUrl, 'http://127.0.0.1').pathname; |
no outgoing calls
no test coverage detected
searching dependent graphs…