diff --git a/static/utils.js b/static/utils.js index bc3ce7d..777f88b 100644 --- a/static/utils.js +++ b/static/utils.js @@ -138,7 +138,7 @@ function setup_geoLoc(){ const requestOptions = { method: 'PUT' }; function geoLoc_success(pos) { - fetch("/log/"+id+"/pos?lat="+pos.coords.latitude+"&long="+pos.coords.longitude, requestOptions); + fetch("/track/"+id+"/pos?lat="+pos.coords.latitude+"&long="+pos.coords.longitude, requestOptions); } function geoLoc_error(err) {