implement /infodesk endpoints
This commit is contained in:
19
Sources/stella/routes/routes.swift
Normal file
19
Sources/stella/routes/routes.swift
Normal 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)
|
||||
}
|
Reference in New Issue
Block a user