feat: add more routes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user