Files
smpark.in/Sources/App/routes.swift
2023-09-11 21:08:38 -07:00

21 lines
644 B
Swift

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")
}
}