2 lines
441 B
JavaScript
2 lines
441 B
JavaScript
import{V as r}from"./index-DVh2g0kp.js";const c={getAllProducts:async()=>await r.get("/product/list/all"),getProductById:async t=>await r.get(`/product/get/${t}`),getProductsByTag:async t=>await r.get(`/product/list/tag/${t}`),likeProduct:async t=>await r.post(`/product/like/${t}`),unlikeProduct:async t=>await r.post(`/product/unlike/${t}`),searchProducts:async t=>await r.get("/product/list/search",{params:{keyword:t}})};export{c as p};
|