Files
website-swift/Sources/App/routes.swift
T
2024-11-09 20:38:38 +01: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())
}