feat(utils,types,framework,medusa): store endpoints should require publishable key (#9068)
* feat(utils,types,framework,medusa): store endpoints should require publishable key * chore: fix specs * chore: fix more specs * chore: update js-sdk * chore: fix specs wrt to default SC * chore: revert custom headers + change error message * chore: fix specs * chore: fix new store specs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import { MiddlewareRoute } from "@medusajs/framework"
|
||||
import { ensurePublishableApiKey } from "../../utils/middlewares/ensure-publishable-api-key"
|
||||
|
||||
export const storeRoutesMiddlewares: MiddlewareRoute[] = [
|
||||
{
|
||||
method: "ALL",
|
||||
matcher: "/store*",
|
||||
middlewares: [ensurePublishableApiKey()],
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user