Files
Stella/Sources/stella/routes.swift
2025-05-14 18:38:30 -04:00

15 lines
249 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())
}