kwhitley / itty-router

A little router.
MIT License
1.71k stars 77 forks source link

JSON - Router #109

Closed Fantros closed 2 years ago

Fantros commented 2 years ago

You can put the router in json and make a structure that can be used, it will be more organized for the user.

Fantros commented 2 years ago

Example: [ { method: "get", url: "/xxx", function: "xxx" } ]

kwhitley commented 2 years ago

Well that's certainly not in scope/vision of itty - but if you want a JSON/config-based router, I recommend building one (or using others, which exist) and publishing it!