add_middleware: Internal function to add middleware

Description Usage Arguments

Description

Internal function to add middleware

Usage

1
add_middleware(jug, func, path = NULL, method = NULL, websocket = FALSE)

Arguments

jug

the jug instance

func

the function to bind

path

the path to bind to

method

the method to bind to

websocket

should the middleware bind to the websocket protocol


jug documentation built on May 1, 2019, 10:31 p.m.