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

Function updateCustomer

frontend/react/src/services/client.js:31–41  ·  view source on GitHub ↗
(id, update)

Source from the content-addressed store, hash-verified

29}
30
31export const updateCustomer = async (id, update) => {
32 try {
33 return await axios.put(
34 `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers/${id}`,
35 update,
36 getAuthConfig()
37 )
38 } catch (e) {
39 throw e;
40 }
41}
42
43export const deleteCustomer = async (id) => {
44 try {

Callers 1

UpdateCustomerFormFunction · 0.90

Calls 1

getAuthConfigFunction · 0.85

Tested by

no test coverage detected