...
Keep the endpoints in a separate file so we don’t have any machine numbers in the code
...
endpoints.js
Code Block |
---|
const JSON_SERVER = 'http://localhost:3000';
export const EP_SALES = '/sale';
export const REMOTE_HOST = JSON_SERVER; |
SalesHistory.jsx
...