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

This commit is contained in:
Kasper Fabricius Kristensen authored and GitHub committed 2023-01-18 10:47:15 +01:00
1 parent ab580066ae
commit 150696de99
15 files changed
+491 -21

No files matched your search

+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,
})
)
}),
]