(r: RouteEntry)
| 745 | } |
| 746 | |
| 747 | private bindRoute(r: RouteEntry) { |
| 748 | const namespace = RestBindings.ROUTES; |
| 749 | const encodedPath = encodeURIComponent(r.path).replace(/\./g, '%2E'); |
| 750 | return this.bind(`${namespace}.${r.verb} ${encodedPath}`) |
| 751 | .to(r) |
| 752 | .tag(RestTags.REST_ROUTE) |
| 753 | .tag({[RestTags.ROUTE_VERB]: r.verb, [RestTags.ROUTE_PATH]: r.path}); |
| 754 | } |
| 755 | |
| 756 | /** |
| 757 | * Register a route redirecting callers to a different URL. |
no test coverage detected