Seed de 5 commande pour Admin

This commit is contained in:
Victor Turgeon
2022-11-07 22:13:11 -05:00
parent 6d29d85edf
commit 13310f6cd0
7 changed files with 2794 additions and 18 deletions

View File

@@ -7,12 +7,13 @@ const MyInvoices = () => {
const [invoices, setInvoices] = useState([]);
useEffect(() => {
fetch(`https://localhost:7292/api/Invoices`, {
fetch(`https://localhost:7292/api/Invoice`, {
method: 'GET',
mode: 'cors',
credentials: 'include'
}).then(async (response) => {
console.log(response);
var json = await response.json();
setInvoices(json);
});
}, []);