remove api file and added controller request to index