Magento 2 frontend route only allow POST method
If you use M 2.3 then easily use that. You controller should implements the following interface:
Magento\Framework\App\Action\HttpPostActionInterface
Check contact module post action how it's use
If you use M 2.3 then easily use that. You controller should implements the following interface:
Magento\Framework\App\Action\HttpPostActionInterface
Check contact module post action how it's use