Hi all,
  I want to detect if the request is for a module and setup some thing only
that case. I have found a solution:

$matched = $router->match($request);
  if ($matched && $matched->getMatchedRouteName() == 'rest-api')

My problem with this is that it detects the route and not the module. If I
have to setup things for all the functions in a module than I will have to
add here all the routes.

Is there a better way?
Thanks.

Regards,
Norbert.

Reply via email to