frontend/src/api/product.js
2024-05-15 13:07:16 +08:00

11 lines
217 B
JavaScript

import {mande} from "mande";
const product = mande('/api/v1/products')
export const ListProducts = (query) => {
return product.get({query:query})
}
export const UpdateProduct=(p)=>{
return product.post(p)
}