Skip to content

Commit 0d2b291

Browse files
committed
#22266 Allow GET method for products alerts
1 parent 8a4e356 commit 0d2b291

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/code/Magento/ProductAlert/Controller/Add/Price.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\ProductAlert\Controller\Add;
88

9+
use Magento\Framework\App\Action\HttpGetActionInterface;
910
use Magento\Framework\App\Action\HttpPostActionInterface;
1011
use Magento\ProductAlert\Controller\Add as AddController;
1112
use Magento\Framework\App\Action\Context;
@@ -20,7 +21,7 @@
2021
/**
2122
* Controller for notifying about price.
2223
*/
23-
class Price extends AddController implements HttpPostActionInterface
24+
class Price extends AddController implements HttpPostActionInterface, HttpGetActionInterface
2425
{
2526
/**
2627
* @var \Magento\Store\Model\StoreManagerInterface

app/code/Magento/ProductAlert/Controller/Add/Stock.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
namespace Magento\ProductAlert\Controller\Add;
88

9+
use Magento\Framework\App\Action\HttpGetActionInterface;
910
use Magento\Framework\App\Action\HttpPostActionInterface;
1011
use Magento\ProductAlert\Controller\Add as AddController;
1112
use Magento\Framework\App\Action\Context;
@@ -19,7 +20,7 @@
1920
/**
2021
* Controller for notifying about stock.
2122
*/
22-
class Stock extends AddController implements HttpPostActionInterface
23+
class Stock extends AddController implements HttpPostActionInterface, HttpGetActionInterface
2324
{
2425
/**
2526
* @var \Magento\Catalog\Api\ProductRepositoryInterface

0 commit comments

Comments
 (0)