fixing routes in api