Skip to content

Instantly share code, notes, and snippets.

@ArchieR7
Created August 3, 2017 03:11
Show Gist options
  • Save ArchieR7/7fd79c9628753826ba780d636d8b7e46 to your computer and use it in GitHub Desktop.
Save ArchieR7/7fd79c9628753826ba780d636d8b7e46 to your computer and use it in GitHub Desktop.
drop.get("/name", ":name", handler: {
request in
if let name = request.parameters["name"]?.string {
return "Hello \(name)!"
}
return "Error retrieving parameters."
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment