`@Controller('users')` | `@Controller({ path: 'users', host })` | `@Controller(['a','b'])` | `@Controller()`.
(args: string)
| 691 | |
| 692 | /** `@Controller('users')` | `@Controller({ path: 'users', host })` | `@Controller(['a','b'])` | `@Controller()`. */ |
| 693 | function parseControllerPrefix(args: string): string { |
| 694 | const obj = args.match(/path\s*:\s*['"`]([^'"`]*)['"`]/); |
| 695 | if (obj) return obj[1]!; |
| 696 | return parseStringArg(args); |
| 697 | } |
| 698 | |
| 699 | /** `@WebSocketGateway({ namespace: 'chat' })` | `@WebSocketGateway(81, { namespace: '/chat' })` | `@WebSocketGateway()`. */ |
| 700 | function parseGatewayNamespace(args: string): string { |
nothing calls this directly
no test coverage detected