diff --git a/2021-11/spring-38/spring-data-rest/src/main/resources/static/index.html b/2021-11/spring-38/spring-data-rest/src/main/resources/static/index.html index f469f6d7..86e8a0c2 100644 --- a/2021-11/spring-38/spring-data-rest/src/main/resources/static/index.html +++ b/2021-11/spring-38/spring-data-rest/src/main/resources/static/index.html @@ -50,10 +50,10 @@ } function getEntryPointHref() { - return fetch("api/profile") + return fetch("api/") .then(data => data.json()) .then(data => data._links.persons) - .then(data => data.href.replace("/profile", "")) + .then(data => data.href.substr(0, data.href.indexOf("{"))) } function addPerson(entryPointHref) {