implement /infodesk endpoints

This commit is contained in:
Andrew Glaze
2025-05-15 18:29:54 -04:00
parent a94752a799
commit 04c5660f7d
8 changed files with 686 additions and 41 deletions

View File

@@ -0,0 +1,19 @@
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!"
}
let openApi = OpenApi()
openApi.registerRoutes(app)
try app.register(collection: InfodeskController())
print(app.routes.all)
}