get: Function to add GET-binding middleware

Description Usage Arguments Methods (by class) See Also

Description

The params to this function are slightly different from post, put and the like due to get being a base function.

Usage

1
2
3
4
get(object, ...)

## S3 method for class 'Jug'
get(object, ...)

Arguments

object

the jug object

...

first argument should be the path followed by middelware functions (order matters) to bind to the path (will receive the params req, res and err)

Methods (by class)

See Also

post, put, delete, use, ws


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