Tranga-Website/Website/apiConnector.js
2023-05-23 12:51:21 +02:00

8 lines
250 B
JavaScript

const apiUri = "http://localhost:5177";
function GetTasks(){
var getTaskUri = apiUri + "/Tasks/GetList";
fetch(getTaskUri)
.then(response => response.json())
.catch(error => console.error('Unable to get items.', error));
}