Splitting the index.html to an api.html