title: How to handle PUT HTTP request in Vapor?
body: <p>The only way I've found to update a record in Vapor is this:</p>
  
  <pre><code>drop.get("update") { request in
  
    guard var first = try Acronym.query().first(),
      let long = request.data["long"]?.string else {
      throw Abort.badRequest
    }
    first.long = long
    try first.save()
    return first
  
  }
  </code></pre>
  
  <p>However it's not a very RESTful way of doing it since it's performing a GET request with a parameter instead of a PUT request.</p>
  
  <p>How does one perform a PUT request in Vapor?</p>