(route)
| 98 | } |
| 99 | |
| 100 | function normalizeRoute(route) { |
| 101 | if (!route.startsWith("/")) { |
| 102 | route = `/${route}`; |
| 103 | } |
| 104 | if (!route.endsWith("/")) { |
| 105 | route = `${route}/`; |
| 106 | } |
| 107 | return route; |
| 108 | } |
| 109 | |
| 110 | function createTargets(options) { |
| 111 | if (options.route) { |