This commit is contained in:
anto
2024-10-24 17:13:14 +02:00
parent bc49332321
commit e07c99e5bb
4 changed files with 68 additions and 27 deletions

View File

@@ -42,6 +42,17 @@ function getDataProjectMetricsFromApi(id) {
});
}
function getDataProjectImagesFromApi(id) {
return $.ajax({
url: api_url.concat(`/image/${id}`),
method: "GET",
dataType: "json",
}).then((data) => {
// If the request is successful, store the data in the cache and return it
return data;
});
}
// Function to send data to API
function sendDataFromApi(datas) {
return $.ajax({