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 parent
8964a03fa1
commit
7b4dda5a17
4 files changed
+22
-6
No files matched your search
@@ -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