This repository has been archived on 2026-02-12. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
swift-duct-calc/Sources/ManualDCore/Routes/SiteRoute.swift
Michael Housh a3fb87f86e
All checks were successful
CI / Linux Tests (push) Successful in 5m30s
feat: Removes api routes and controller as they're currently not used.
2026-01-30 17:10:14 -05:00

21 lines
361 B
Swift

import CasePathsCore
import FluentKit
import Foundation
@preconcurrency import URLRouting
public enum SiteRoute: Equatable, Sendable {
case health
case view(Self.View)
public static let router = OneOf {
Route(.case(Self.health)) {
Path { "health" }
Method.get
}
Route(.case(Self.view)) {
SiteRoute.View.router
}
}
}