Files
cod-backend/Sources/App/routes.swift
Michael Simard ba9bfd5e6a first commit
2020-05-25 20:58:43 -05:00

14 lines
254 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: TodoController())
}