insert a callback that will only occur once per the matched route.
Syntax
var instance = new Router();
// Parameters
var method; // Type: String
var path; // Type: Array
var route; // Type: Array
var parent; // Type: Object
instance.insertEx(method, path, route, parent);
function insertEx(
: String,
: Array,
: Array,
: Object
) : void;
Parameters
- method
- Method to insert the specific `route`.
- path
- Parsed path to insert the `route` at.
- route
- Route handlers to insert.
- parent
- Parent "routes" to insert into.
Browser Compatibility
See Also