.routeMiddleware {beakr} | R Documentation |
Internal function to add middleware to a Beakr object
Description
This function is used in each of the http_~()
methods
as well as the cors()
, websocket()
and use()
utility
functions.
Usage
.routeMiddleware(beakr, FUN, path = NULL, method = NULL, websocket = FALSE)
Arguments
beakr |
Beakr instance. |
FUN |
Function to route middleware. |
path |
Path to route the middleware. |
method |
HTTP method to employ. |
websocket |
Boolean, TRUE if websocket. |
Value
A Beakr
instance with added middleware.
[Package beakr version 0.4.3 Index]