Generate Vapor project.
This commit is contained in:
11
Sources/App/routes.swift
Normal file
11
Sources/App/routes.swift
Normal file
@@ -0,0 +1,11 @@
|
||||
import Vapor
|
||||
|
||||
func routes(_ app: Application) throws {
|
||||
app.get { req async in
|
||||
"It works!"
|
||||
}
|
||||
|
||||
app.get("hello") { req async -> String in
|
||||
"Hello, world!"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user