Skip to content

Commit c834114

Browse files
committed
Edit django rest api fetch statement to work with heroku hostname
1 parent 688cb5d commit c834114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/js/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// Fetch data from Django REST API
2-
fetch('http://localhost:8000/tickets/api/tickets')
1+
// Fetch source data for charts from Django REST API
2+
fetch(document.location.origin + '/tickets/api/tickets')
33
.then((response) => {
44
return response.json();
55
})

0 commit comments

Comments
 (0)