rename api to index