You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
257 B

  1. import Fluent
  2. import Vapor
  3. func routes(_ app: Application) throws {
  4. app.get { req async in
  5. "It works!"
  6. }
  7. app.get("hello") { req async -> String in
  8. "Hello, world!"
  9. }
  10. try app.register(collection: TodoController())
  11. }