Generate Vapor project.

This commit is contained in:
2024-12-31 08:49:59 -05:00
commit bb568ba60e
11 changed files with 251 additions and 0 deletions

11
Sources/App/routes.swift Normal file
View 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!"
}
}