Files
cod-backend/Sources/App/routes.swift

15 lines
256 B
Swift

import Fluent
import Vapor
func routes(_ app: Application) throws {
app.get { req in
return "It works!"
}
app.get("hello") { req -> String in
return "Hello, world!"
}
try app.register(collection: StatsController())
}