feat(medusa, medusa-js, medusa-react): Add endpoint to retrieve product tags from the storefront (#3051)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { fixtures } from "../data"
|
||||
import { rest } from "msw"
|
||||
import { fixtures } from "../data"
|
||||
|
||||
export const storeHandlers = [
|
||||
rest.get("/store/products", (req, res, ctx) => {
|
||||
@@ -550,4 +550,15 @@ export const storeHandlers = [
|
||||
)
|
||||
}
|
||||
),
|
||||
|
||||
rest.get("/store/product-tags", (req, res, ctx) => {
|
||||
return res(
|
||||
ctx.status(200),
|
||||
ctx.json({
|
||||
product_tags: fixtures.list("product_tag", 10),
|
||||
limit: 5,
|
||||
offset: 0,
|
||||
})
|
||||
)
|
||||
}),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user