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