added the option to parse the parameters before calling the route's function