add api-endpoint.html to index.html