MCPcopy Index your code
hub / github.com/typicode/json-server / CustomRoutesBlock

Function CustomRoutesBlock

public/script.js:46–66  ·  view source on GitHub ↗
({ customRoutes })

Source from the content-addressed store, hash-verified

44 )
45
46function 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
68window
69 .fetch('__rules')

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…