feat(medusa, medusa-js, medusa-react): Add endpoint to retrieve product tags from the storefront (#3051)

This commit is contained in:
Kasper Fabricius Kristensen
2023-01-18 10:47:15 +01:00
committed by GitHub
parent ab580066ae
commit 150696de99
15 changed files with 491 additions and 21 deletions
+12 -1
View File
@@ -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,
})
)
}),
]