fix notice status
This commit is contained in:
12
ArtisanConnect/api/order.jsx
Normal file
12
ArtisanConnect/api/order.jsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import axios from "axios";
|
||||
import FormData from "form-data";
|
||||
|
||||
const API_URL = "https://hopp.zikor.pl/api/v1";
|
||||
export async function listOrders() {
|
||||
const response = await fetch(`${API_URL}/orders/get/all`);
|
||||
const data = await response.json();
|
||||
if (!response.ok) {
|
||||
throw new Error(response.toString());
|
||||
}
|
||||
return data;
|
||||
}
|
||||
Reference in New Issue
Block a user