1
0
mirror of https://github.com/franjsco/tick3t synced 2024-12-27 09:53:37 +01:00

improvement: remove httpClient

This commit is contained in:
Francesco Esposito 2019-07-31 15:58:11 +02:00
parent e7793fe063
commit eba2663d18

View File

@ -1,14 +0,0 @@
export const httpClient = (url, options) => {
return fetch(url, options)
.then(response => {
if (!response.ok) {
throw new Error(response.status);
}
return response.json();
}).catch(err => {
throw new Error(err);
});
}