fixed redirection issue and renamed index to api for swagger UI (#210)