Renamed endpoints to api