mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
2021-11 hateoas example updated
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user