Created
August 3, 2017 03:11
-
-
Save ArchieR7/7fd79c9628753826ba780d636d8b7e46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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