First pass at integrating express-map and express-routes.
Other changes include:
- doc api updates
- multiple minor code refactoring
Now using `express-map` to created named route configuration.
Simplified route configuration serialization between add ons and client runtime.
- Added RegExp to whitelist for cleanse
- No more converting route configuration to "old format"
- Now using express-state/lib/serialize
- Updated route lookup based on express-map pr#4
- No need to explicitly copy over the `annotations` property now that routes configuration is read from express-map#getRouteMap()
Removed unused code.
Deleted unused code.
Updated from PR feedback
- Added `resetRoutesConfig` for force Mojito to reload route configuration at runtime.
- Unit tests fixes
Added optional second argument to `dispatcher.dispatch` to pass any static route params.
More tests fixes.
- Revised proposal based on updated api from `express-map` and `express-annotations`
- Added sugar `app.mojito.get('foo', '/foo', 'foo.index');` to register routing with Mojito
Updated HISTORY_next.md with deprecated APIs
- 2nd pass over the routing api
- Updated apidocs
- More unit tests fixes
- Removed all references to 'find()' methods
- Removed all references to 'annotations' - no need to serialize to clients
- Removed 'decodeRouteName()' since it is a one way operation
- Removed sugar methods for the router
-
Changes based on PR#1233 feedback.
Fix leaking parameters to caller!
Unit tests fixes.
- More functional and unit tests fixes.
- Deleted tests related to `route-maker#find()` and `ac.url#find()`
-
Added express-state and express-map as dependencies