I'm building a 'Frapi extension' for a university project. I have to code a Front Controller Action that handles all requests. I've tried to set the custom route to "/*" but it doesn't work.
Is there a way to do this?
Here an example
class CustomAction {
public function executeAction()
return "test";
}
}
I want that when I do
curl -X GET -d {} http://api/x.json
or
curl -X GET -d {} http://api/y.json
or
curl -X GET -d {} http://api/xxx/yyy.json
or
curl -X GET -d {} http://api/kkk/hhh/sss.json
and so on...
then I would have ever "test".