ididit
how can i create a router off of a JSON?
is it possible to create a route dynamically off of a JSON?
lets say i have:
but i want this created dynamically from a JSON that looks something like this:
afterwards i applied the routes to the middleware and it works on backend:
but from the client-side, i lost all type inference to these routes. anyone ever get this to work?
2 replies