Today I got the List api endpoints from the django backend working
Root API endpoint = /api/v1
Products = /products/all
Warehouses = /warehouses/all
Customers = /customers/all
Shipments = /shipments/all
To enable My React work with my backend I needed to install
django-cors-headers and add localhost:300 to my whitelist.This is as a result of CORS
Cross-origin resource sharing is a mechanism that allows restricted resources on a web page to be requested from another domain outside the domain from which the first resource was served.
The next thing I need to do is to work on all my components in React.
Top comments (0)