Seed de 5 commande pour Admin
This commit is contained in:
		@@ -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);
 | 
			
		||||
        });
 | 
			
		||||
    }, []);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user