Created
June 29, 2020 18:24
-
-
Save grant/0954f729e7f95d80daa4c144120f716b to your computer and use it in GitHub Desktop.
Vapor Routes
This file contains 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
import Vapor | |
func routes(_ app: Application) throws { | |
app.get { req in | |
return "It works!" | |
} | |
app.get("hello") { req -> String in | |
return "Hello, world!" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment