16 lines
311 B
Swift
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())
|
|
}
|