import CasePathsCore import Foundation @preconcurrency import URLRouting /// Represents all the routes that our server can handle. public enum SiteRoute: Sendable { case api(SiteRoute.Api) case health case view(SiteRoute.View) public static let router = OneOf { Route(.case(Self.view)) { SiteRoute.View.router } Route(.case(Self.health)) { Path { "health" } Method.get } Route(.case(Self.api)) { SiteRoute.Api.router } } }