We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cba8a3 commit eb2ed2bCopy full SHA for eb2ed2b
packages/modules/b2c-core/src/api/vendor/stock-locations/middlewares.ts
@@ -56,6 +56,16 @@ export const vendorStockLocationsMiddlewares: MiddlewareRoute[] = [
56
)
57
]
58
},
59
+ {
60
+ method: ['DELETE'],
61
+ matcher: '/vendor/stock-locations/:id',
62
+ middlewares: [
63
+ checkResourceOwnershipByResourceId({
64
+ entryPoint: sellerStockLocationLink.entryPoint,
65
+ filterField: 'stock_location_id'
66
+ }),
67
+ ]
68
+ },
69
{
70
method: ['POST'],
71
matcher: '/vendor/stock-locations/:id',
0 commit comments