Join a class-level [Route] prefix and an action's path into one normalized `/path`.
(prefix: string, sub: string)
| 440 | |
| 441 | /** Join a class-level [Route] prefix and an action's path into one normalized `/path`. */ |
| 442 | function joinCsPath(prefix: string, sub: string): string { |
| 443 | const parts = [prefix, sub].map((p) => p.replace(/^\/+|\/+$/g, '')).filter(Boolean); |
| 444 | return '/' + parts.join('/'); |
| 445 | } |
| 446 | |
| 447 | /** Extract last identifier from an expression like `MyService.Handler` or `Handler`. */ |
| 448 | function extractCSharpTailIdent(expr: string): string | null { |
no test coverage detected