Remove legacy API (#55)

This commit is contained in:
Sascha Ißbrücker
2021-02-16 04:45:21 +01:00
committed by GitHub
parent 79dd4179d2
commit 778f1b2ff3
5 changed files with 24 additions and 32 deletions

View File

@@ -97,7 +97,7 @@
toggleIcon(descriptionInput, true);
const websiteUrl = encodeURIComponent(urlInput.value);
const requestUrl = `{% url 'bookmarks:api.check_url' %}?url=${websiteUrl}`;
const requestUrl = `{% url 'bookmarks:api-root' %}bookmarks/check?url=${websiteUrl}`;
fetch(requestUrl)
.then(response => response.json())
.then(data => {