Skip to content

Instantly share code, notes, and snippets.



Created Jun 29, 2020
What would you like to do?
Vapor Routes
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