Learn R Programming

jug (version 0.1.7)

get: Function to add GET-binding middleware

Description

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

Usage

get(object, ...)

# S3 method for 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)

  • Jug: Function to add GET-binding middleware

See Also

post, put, delete, use, ws