Helped the router's prepare method handle routes with parameters.