Join a class-level [Route] prefix and an action's path into one normalized `/path`.
(prefix: string, sub: string)
| 394 | |
| 395 | /** Join a class-level [Route] prefix and an action's path into one normalized `/path`. */ |
| 396 | function joinCsPath(prefix: string, sub: string): string { |
| 397 | const parts = [prefix, sub].map((p) => p.replace(/^\/+|\/+$/g, '')).filter(Boolean); |
| 398 | return '/' + parts.join('/'); |
| 399 | } |
| 400 | |
| 401 | /** Extract last identifier from an expression like `MyService.Handler` or `Handler`. */ |
| 402 | function extractCSharpTailIdent(expr: string): string | null { |
no test coverage detected