This commit is contained in:
2023-03-11 22:43:23 -08:00
parent 56c8f8515f
commit 291b224d97
264 changed files with 561 additions and 25571 deletions

20
Sources/App/routes.swift Normal file
View File

@@ -0,0 +1,20 @@
import Vapor
// Register your application's routes here.
public func routes(_ app: Application) throws {
app.get("") { req async throws -> View in
return try await req.view.render("home")
}
app.get("index.html") { req async throws -> View in
return try await req.view.render("home")
}
app.get("privacy") { req async throws -> View in
return try await req.view.render("privacy")
}
app.get("welcome") { req async throws -> View in
return try await req.view.render("welcome")
}
app.get("**") { req async throws -> View in
return try await req.view.render("404")
}
}