Skip to content

Commit

Permalink
fix: Data not showing on frontend in an installation (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aiky30 authored Sep 30, 2024
1 parent 3644601 commit e9f1aeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ section.append(tableContainer);
let loadTableData = function (deviceModuleId) {

// const url = section.getAttribute("data-json-feed")
const url = "http://localhost:8000/api/v1/device-module-readings/"
const url = window.location.origin + "/api/v1/device-module-readings/"
const endpoint = new URL(url);
endpoint.searchParams.append("device_module", deviceModuleId);
endpoint.searchParams.append("format", "json");
Expand Down

0 comments on commit e9f1aeb

Please sign in to comment.