Tranga-Website/Website/apiConnector.js

8 lines
250 B
JavaScript
Raw Normal View History

2023-05-23 12:51:21 +02:00
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));
}