first commit
This commit is contained in:
14
Sources/App/routes.swift
Normal file
14
Sources/App/routes.swift
Normal file
@@ -0,0 +1,14 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user