Automatic generation from github.com/vapor/template

This commit is contained in:
VaporBot 2022-07-21 07:47:53 +00:00
parent 74f2bac133
commit 52489209ff

View File

@ -2,12 +2,12 @@ import Fluent
import Vapor
func routes(_ app: Application) throws {
app.get { req in
return "It works!"
app.get { req async in
"It works!"
}
app.get("hello") { req -> String in
return "Hello, world!"
app.get("hello") { req async -> String in
"Hello, world!"
}
try app.register(collection: TodoController())