(path: string)
| 32 | * @returns - Root URL of the Directus instance |
| 33 | */ |
| 34 | export function extractPath(path: string) { |
| 35 | const parts = path.split('/'); |
| 36 | const adminIndex = parts.indexOf('admin'); |
| 37 | const rootPath = '/' + parts.slice(adminIndex + 1).join('/'); |
| 38 | return rootPath; |
| 39 | } |
no test coverage detected