Update routes for api