13 lines
224 B
Swift
13 lines
224 B
Swift
import Foundation
|
|
import Vapor
|
|
|
|
func routes(_ app: Application) throws {
|
|
app.get { req async in
|
|
"It works!"
|
|
}
|
|
|
|
app.get("hello") { req async -> String in
|
|
return "Hello, world!"
|
|
}
|
|
}
|