Renamed index to api