route_merge | R Documentation |
This function allows you to combine two separate routes into one. This is
different from combining them in a routestack, because a request is only
matched to one handler in each route (thus combining them with
route_merge()
will ensure only one handler is called).
route_merge(x, route, use_root = TRUE)
x , route |
Route objects to merge. |
use_root |
Should the root of |
x
with route
merged into it
route() |>
route_add("HEAD", "*", function(...) {
message("Someone's looking")
TRUE
}) |>
route_merge(
sizelimit_route()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.