findAll method
Implementation
http.Response findAll(String category) {
List<Offer>? offers = _offerService?.findOffersByCategory(category);
return http.Response(jsonEncode(offers), HttpStatus.ok);
}
http.Response findAll(String category) {
List<Offer>? offers = _offerService?.findOffersByCategory(category);
return http.Response(jsonEncode(offers), HttpStatus.ok);
}