(routePrefix: string)
| 60 | } |
| 61 | |
| 62 | function formatRoutePrefix(routePrefix: string): string { |
| 63 | if (routePrefix === '/') { |
| 64 | return '/'; |
| 65 | } |
| 66 | // Ensure it starts with / and ends with /* |
| 67 | const normalized = routePrefix.startsWith('/') |
| 68 | ? routePrefix |
| 69 | : `/${routePrefix}`; |
| 70 | return `${normalized}/*`; |
| 71 | } |
| 72 | |
| 73 | interface ServiceDescriptionInfo { |
| 74 | label: string; |