chore(): apply locale middleware to all store routes (#14305)
* chore(): apply locale middleware to all store routes * Create pink-papayas-brush.md
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { validateAndTransformQuery } from "@medusajs/framework"
|
||||
import {
|
||||
applyDefaultFilters,
|
||||
applyLocale,
|
||||
applyParamsAsFilters,
|
||||
authenticate,
|
||||
clearFiltersByKey,
|
||||
@@ -64,10 +63,6 @@ async function applyMaybeLinkFilterIfNecessary(
|
||||
}
|
||||
|
||||
export const storeProductRoutesMiddlewares: MiddlewareRoute[] = [
|
||||
{
|
||||
matcher: "/store/products/*",
|
||||
middlewares: [applyLocale],
|
||||
},
|
||||
{
|
||||
method: ["GET"],
|
||||
matcher: "/store/products",
|
||||
|
||||
Reference in New Issue
Block a user