SiteController
struct SiteController : SiteControllerUtils
Route gorup that only manages one route: the root route “/”.
-
Declaration
Swift
func registerRoutes(_ app: Application) throws
-
rootPageHandler(_:
Asynchronous) GET /
Root page. This has a surprising number of queries. Because this page now has all the menu links, it’s important the page not fail if sub-calls fail.
See moreDeclaration
Swift
func rootPageHandler(_ req: Request) async throws -> View
-
aboutTwitarrViewHandler(_:
Asynchronous) GET /about
See moreDeclaration
Swift
func aboutTwitarrViewHandler(_ req: Request) async throws -> View
-
timePageHandler(_:
Asynchronous) Declaration
Swift
func timePageHandler(_ req: Request) async throws -> View
-
mapPageHandler(_:
Asynchronous) Declaration
Swift
func mapPageHandler(_ req: Request) async throws -> View