Description Usage Arguments Value
This function is used in each of the http_~()
methods
as well as the cors()
, websocket()
and use()
utility
functions.
1 | .routeMiddleware(beakr, FUN, path = NULL, method = NULL, websocket = FALSE)
|
beakr |
Beakr instance. |
FUN |
Function to route middleware. |
path |
Path to route the middleware. |
method |
HTTP method to employ. |
websocket |
Boolean, TRUE if websocket. |
A Beakr
instance with added middleware.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.