Function to add request method insensitive middleware

use(jug, path, ..., method = NULL)

Arguments

jug

the jug object

path

the path to bind to

...

functions (order matters) to bind to the path (will receive the params req, res and err)

method

the method to bind to, defauts to NULL

See also

post, put, delete, get, ws