dot-routeMiddleware: Internal function to add middleware to a Beakr object

Description Usage Arguments Value

Description

This function is used in each of the http_~() methods as well as the cors(), websocket() and use() utility functions.

Usage

1
.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.


beakr documentation built on April 7, 2021, 1:06 a.m.