check for function name == http variable and route the base path of the ...

...controller accordingly