Files
Stella/Sources/stella/routes.swift
2025-05-15 22:14:00 -04:00

16 lines
311 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: InfodeskController())
try app.register(collection: OpenApiController())
}