Back to Expressjs

App Put Method

_includes/api/en/4x/app-put-method.md

latest300 B
Original Source
<h3 id='app.put.method'>app.put(path, callback [, callback ...])</h3>

Routes HTTP PUT requests to the specified path with the specified callback functions.

{% include api/en/4x/routing-args.html %}

Example

js
app.put('/', function (req, res) {
  res.send('PUT request to homepage')
})