We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should allow web pages to retrieve the routes available in the systems.
This should be done in two steps:
For the first point, something like:
$.getJSON("/wisdom/routes").success(function(routes() { ... } ); // Get all routes $.getJSON("/wisdom/routes?controller=...&method=...").success(function(routes() { ... } ); // Filter routes
Route objects are composed of the HTTP Method, the URL and the potential parameters.
The second point expose a higher-level API to invoke the routes:
var router = new Router(); router.getRouteFor(controller, method).invoke({ parameter : {parameters}, success : function(result) { }, error : function(code, error) {} });
The invoke method should allow other JQuery-like attributes (async, ....) Behind the hood, JQuery is used.
invoke
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We should allow web pages to retrieve the routes available in the systems.
This should be done in two steps:
For the first point, something like:
Route objects are composed of the HTTP Method, the URL and the potential parameters.
The second point expose a higher-level API to invoke the routes:
The
invoke
method should allow other JQuery-like attributes (async, ....)Behind the hood, JQuery is used.
The text was updated successfully, but these errors were encountered: