test
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user