Is your feature request related to a problem? Please describe.
There's no easy way to reference API routes other than their URL which may not be simple to remember.
Describe the solution you'd like
Named routes and the ability to get the URL with the name.
Describe alternatives you've considered
Trying to remember API routes, and having to interpolate/concatenate URL parameters. hard-coding endpoints.
Additional context
Routes are stored in the Router, it should be possible to assign names to each route, and then look these up from the router. There will also need to be a way to "build" a URL from the route and the given URL parameters.
Is your feature request related to a problem? Please describe. There's no easy way to reference API routes other than their URL which may not be simple to remember.
Describe the solution you'd like Named routes and the ability to get the URL with the name.
Describe alternatives you've considered Trying to remember API routes, and having to interpolate/concatenate URL parameters. hard-coding endpoints.
Additional context Routes are stored in the
Router
, it should be possible to assign names to each route, and then look these up from the router. There will also need to be a way to "build" a URL from the route and the given URL parameters.