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

Function saveCustomer

frontend/react/src/services/client.js:20–29  ·  view source on GitHub ↗
(customer)

Source from the content-addressed store, hash-verified

18}
19
20export const saveCustomer = async (customer) => {
21 try {
22 return await axios.post(
23 `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers`,
24 customer
25 )
26 } catch (e) {
27 throw e;
28 }
29}
30
31export const updateCustomer = async (id, update) => {
32 try {

Callers 1

CreateCustomerFormFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected