1
0
mirror of https://github.com/vapor/template-fluent-postgres.git synced 2025-05-15 18:23:51 +08:00

15 lines
253 B
Swift

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