Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Structure

Routes

The routes registered on an Application.
struct Routes

Overview

A view onto the application’s route storage rather than a container of its own, so that building routes through it — app.routes.grouped(...), app.routes.get(...) — registers them on the application itself. Every change goes through the application’s freeze, so routes and routing settings can only be configured before it starts.

Topics

Instance Properties

Instance Methods

Relationships

Conforms To

  • RoutesBuilder
  • Swift.CustomStringConvertible
  • Swift.Sendable
  • Swift.SendableMetatype