Skip to content

Instantly share code, notes, and snippets.

@grant

grant/routes.swift

Created Jun 29, 2020
Embed
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
You can’t perform that action at this time.