-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to query routes #49
Comments
Paging @mgorbach, who was interested in this. |
This is a brilliant idea. |
Could someone open up this feature idea a bit more, so I can get a clear idea of what functionality is wanted? |
I was thinking all the route registrations would be exposed in an array. You could then list them somewhere like RZDebugMenu or similar. When you tap a route, if it has I’m not sure how much of this would be built in to JLRoutes and how much would be up to the host app. I was thinking JLRoutes would just expose the route registrations in an easily consumable format. |
It would be nice to have a query feature. Besides, I think it would be better if _JLRoute creation process is separated from JLRoutes, and expose _JLRoute to public. So that users can encapsulate a route logic in a _JLRoute subclass, then they can create, add, query, test, perform _JLRoute as they wish. |
It would be great to have this feature, I would use it for sure! |
Two new methods I just pushed: /// All registered routes, keyed by scheme
+ (NSDictionary <NSString *, NSArray <JLRRouteDefinition *> *> *)allRoutes;
/// Return all registered routes in the receiving scheme namespace.
- (NSArray <JLRRouteDefinition *> *)routes; Sorry that took so long. |
Works great. |
It would be nice if you could query JLRoutes for all the currently registered routes, and then generate, for example, a testing UI that provides easy links to all the routes in the app.
The text was updated successfully, but these errors were encountered: