Description Usage Arguments Value
For example,
list('/ping' = function(params, query) 'Hello world!',
function(params, query) 'Invalid route.'))
refers to a /ping route and a default route 'Invalid route.'
1 | determine_route(routes, request_path)
|
routes |
list. A named list of routes. |
request_path |
character. The path to which the request was sent. |
the correct route drawn from the routes list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.