api index page works