MCPcopy Create free account
hub / github.com/amigoscode/full-stack-professional / getCustomers

Function getCustomers

frontend/react/src/services/client.js:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7})
8
9export const getCustomers = async () => {
10 try {
11 return await axios.get(
12 `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers`,
13 getAuthConfig()
14 )
15 } catch (e) {
16 throw e;
17 }
18}
19
20export const saveCustomer = async (customer) => {
21 try {

Callers 1

fetchCustomersFunction · 0.90

Calls 1

getAuthConfigFunction · 0.85

Tested by

no test coverage detected