11 lines
217 B
JavaScript
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)
|
|
} |