Implemented the bare bone version for the ArchiveController controller in the library target.

This commit is contained in:
Javier Cicchelli 2025-03-10 01:57:37 +01:00
parent b190a8b02d
commit ac99447836

View File

@ -0,0 +1,26 @@
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
}
}