mirror of https://gitee.com/bigwinds/arangodb
615 B
615 B
Controller.patch(path, callback)
Defines a new route on path
that handles requests from the HTTP verb patch
.
This route can also be 'parameterized' like /goose/:barn
.
In this case you can later get the value the user provided for barn
via the params
function in the request
.
The function defined in callback
will be invoked whenever this type of
request is recieved.
callback
get's two arguments request
and response
, see below for further
information about these objects.
@EXAMPLES
app.patch('/goose/barn', function (req, res) {
// Take this request and deal with it!
});