changing routing for api