(request: IncomingMessage, settings: Settings)
| 108 | } |
| 109 | |
| 110 | export const getPublicPathPrefix = (request: IncomingMessage, settings: Settings): string => { |
| 111 | return getTrustedForwardedPathPrefix(request, settings) || getRelayUrlPathPrefix(settings.info?.relay_url) |
| 112 | } |
| 113 | |
| 114 | export const joinPathPrefix = (prefix: string, path: string): string => { |
| 115 | const normalizedPrefix = prefix.replace(/\/+$/, '') |
no test coverage detected