(path: string)
| 30 | } |
| 31 | |
| 32 | export function appPath(path: string): string { |
| 33 | if (!path.startsWith("/")) return path; |
| 34 | const basePath = appBasePath(); |
| 35 | if (!basePath) return path; |
| 36 | if (path === basePath || path.startsWith(`${basePath}/`)) return path; |
| 37 | return `${basePath}${path}`; |
| 38 | } |
| 39 | |
| 40 | export function appApiPath(path: string): string { |
| 41 | const normalized = |
no test coverage detected