Function
Fetches all deliveries from the API.
This function sends a GET request to the API to retrieve all deliveries. If the request is successful, it returns the delivery data. In case of an error, it catches the error and logs it, returning an empty array.
getDeliveries
The response data from the API, which contains an array of deliveries, or an empty array if an error occurs.
If there is an error during the request, it is caught and logged.
Fetches all deliveries from the API.
This function sends a GET request to the API to retrieve all deliveries. If the request is successful, it returns the delivery data. In case of an error, it catches the error and logs it, returning an empty array.
getDeliveries