I’m not sure if this is possible
Right now I have an index.php
file
namespace VendorIngredientsControllerListing
It’s allowing me to reach the url : ingredients/listing
What I would like to be able to do is to match the url this way
ingredients/listing/1
Where /1
could be any value; it would be a parameter; but I don’t want to go with a real get parameter to make sure the url isn’t like ingredients/listing?id=1
Is there a way to indicate my router that there is a parameter in the url on a subroute ?
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
<router id="standard">
<route id="ingredients" frontName="ingredients">
<module name="Cpy_Ingredient"/>
</route>
</router>
</config>
Basically i guess what I need is to get a controller matching ingredients/listing/*