fetch-router@0.3.0
📦 remixView on GitHub →
✨ 4 features🔧 6 symbols
Summary
This release introduces enhanced routing capabilities including bulk route mapping and a new resource-based routing API for both singleton and plural resources.
Migration Steps
- Use router.map(path, handler) for simple route registration.
- Use router.map(routes, handlers) for bulk registration of routes created via createRoutes().
- Implement resource-based routing by defining routes with resource() or resources() and mapping them to objects containing standard action handlers (index, show, create, etc.).
✨ New Features
- Added router.map() for registering routes and middleware individually or in bulk.
- Added createRoutes() to support bulk route mapping with named identifiers.
- Added resource() and resources() functions for creating RESTful resource-based route maps.
- Added createResource and createResources functions to facilitate singleton and plural resource routing.
🔧 Affected Symbols
router.mapcreateRoutesresourceresourcescreateResourcecreateResources