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

Function deleteCustomer

frontend/react/src/services/client.js:43–52  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

41}
42
43export const deleteCustomer = async (id) => {
44 try {
45 return await axios.delete(
46 `${import.meta.env.VITE_API_BASE_URL}/api/v1/customers/${id}`,
47 getAuthConfig()
48 )
49 } catch (e) {
50 throw e;
51 }
52}
53
54export const login = async (usernameAndPassword) => {
55 try {

Callers 1

CardWithImageFunction · 0.90

Calls 1

getAuthConfigFunction · 0.85

Tested by

no test coverage detected