Magento 2 Certification Questions List | How to magento build routes

At what URL would you visit the controller listed above You see code in etc/frontend/routes.xml

<route id="mymodule" frontendName="user-subscriptions">
    <module name="MyCompany_MyModule" />
</route>

You have placed a controller in Controller/Index/Subscribe.php At what URL would you visit the controller listed above?

Answer:
  • /user-subscriptions/index/subscribe
Prepear for Magento 2 certefication with our interactive quiz