modified the url rules for api