doxy/Library/Sources/Internal/Controllers/ArchiveController.swift

27 lines
469 B
Swift
Raw Normal View History

import Hummingbird
struct ArchiveController<Context: RequestContext> {
// MARK: Functions
func register(to router: Router<Context>) {
router.get("archives", use: listAllArchives)
}
}
// MARK: - Helpers
private extension ArchiveController {
// MARK: Functions
@Sendable func listAllArchives(
_ request: Request,
context: Context
) async throws -> HTTPResponse.Status {
.ok
}
}