We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 688cb5d commit c834114Copy full SHA for c834114
static/js/dashboard.js
@@ -1,5 +1,5 @@
1
-// Fetch data from Django REST API
2
-fetch('http://localhost:8000/tickets/api/tickets')
+// Fetch source data for charts from Django REST API
+fetch(document.location.origin + '/tickets/api/tickets')
3
.then((response) => {
4
return response.json();
5
})
0 commit comments