Route Mapper
Description
Client-side route mapper for Enso UI applications.
Installation
Install the package:
yarn add @enso-ui/route-mapper
Features
- maps Laravel route manifests to client-side URLs
- supports parameter substitution and absolute/relative URL generation
- throws explicit errors when required route params are missing
Usage
import RouteMapper from '@enso-ui/route-mapper';
const route = new RouteMapper(window.location.origin, routes);
route.get('administration.users.edit', { user: 1 });
API
Depends On
- No additional Enso UI dependencies.
Contributions
are welcome. Pull requests are great, but issues are good too. Thank you to all the people who already contributed to Enso!