({ customRoutes })
| 44 | ) |
| 45 | |
| 46 | function CustomRoutesBlock({ customRoutes }) { |
| 47 | const rules = Object.keys(customRoutes) |
| 48 | if (rules.length) { |
| 49 | return ` |
| 50 | <div> |
| 51 | <h1>Custom Routes</h1> |
| 52 | <table> |
| 53 | ${rules |
| 54 | .map( |
| 55 | (rule) => |
| 56 | `<tr> |
| 57 | <td>${rule}</td> |
| 58 | <td><code>⇢</code> ${customRoutes[rule]}</td> |
| 59 | </tr>`, |
| 60 | ) |
| 61 | .join('')} |
| 62 | </table> |
| 63 | </div> |
| 64 | ` |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | window |
| 69 | .fetch('__rules') |
no outgoing calls
no test coverage detected
searching dependent graphs…