feat: add more routes

This commit is contained in:
Diego Mireles
2026-05-23 12:24:52 -06:00
parent ad1bf1af3d
commit 01f01ebd0a
26 changed files with 934 additions and 24 deletions

View File

@@ -0,0 +1,19 @@
/**
* list-all-feedback.use-case.ts
* Solo accesible por admin. Devuelve TODOS los reportes que han mandado
* los ciudadanos a través del buzón, ordenados del más reciente al más
* antiguo.
*/
import type {
FeedbackItem,
FeedbackRepository,
} from "../../repositories/feedback.repository.js";
export class ListAllFeedbackUseCase {
constructor(private readonly repository: FeedbackRepository) {}
async execute(): Promise<FeedbackItem[]> {
return this.repository.listAll();
}
}