Url.common Class
Access point: ac.url.* Generates URL's based on the applictions routing configuration
Methods
find
(
-
url -
verb
Finds the first matching route from the given URL
Parameters:
-
urlStringthe URL to find a route for.
-
verbStringthe HTTP method.
make
(
-
base -
action -
routeParams -
varb -
urlParams
Generates a URL from the given parameters
Parameters:
-
baseStringBase mojit defined at the root level of the Mojito application configuration.
-
actionStringAction reference, concatenated to the base using a period (.) separator.
-
routeParamsObjectused to lookup the route in the routing table.
-
varbStringGET, POST, PUT, DELETE (case insensitive).
-
urlParamsObjectadded to the looked up route as query params.
