27 lines
469 B
Swift
27 lines
469 B
Swift
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
|
|
}
|
|
|
|
}
|