Consider the following Craft 3 example module structure:
modules/
businesslogic/
controllers/ExampleController.php
BusinessLogic.php
...and consider the following action in ExampleController.php:
public function actionExampleRoute()
{
die('in example-route action');
}
Assuming everything is set up and configured correctly, is this the correct URL for triggering the action in ExampleController.php?
http://my-craft-site/business-logic/example/example-route
If so, this is not working for me; it instead results in a 404/Template not found error. I'm not sure if I misunderstand how to determine the correct URL or if I set up something incorrectly.
I am working with the example provided here and I believe I have followed the instructions correctly. The instructions include a simple test of the module, and the test succeeds--I'm just not able to get the controller action to work as expected.