Skip to content

Commit

Permalink
rename fileName and routes
Browse files Browse the repository at this point in the history
  • Loading branch information
jerem1508 committed Oct 29, 2024
1 parent 181503b commit 0e366c5
Show file tree
Hide file tree
Showing 4 changed files with 200 additions and 209 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const { VITE_APP_SERVER_URL } = import.meta.env;

export async function GetfundedObjectives(params: string) {
let url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-funding_programme`;
let url = `${VITE_APP_SERVER_URL}/european-projects/funded-objectives`;
if (params !== "") {
url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-funding_programme?${params}`;
url = `${VITE_APP_SERVER_URL}/european-projects/funded-objectives?${params}`;
}

return fetch(url).then((response) => response.json());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const { VITE_APP_SERVER_URL } = import.meta.env;

export async function GetData(params: string) {
let url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-main-beneficiaries`;
if (params !== '') {
url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-main-beneficiaries?${params}`;
let url = `${VITE_APP_SERVER_URL}/european-projects/main-beneficiaries`;
if (params !== "") {
url = `${VITE_APP_SERVER_URL}/european-projects/main-beneficiaries?${params}`;
}

return fetch(url).then((response) => (response.json()))
return fetch(url).then((response) => response.json());
}

Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
const { VITE_APP_SERVER_URL } = import.meta.env;

export async function GetData(params: string) {
let url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-focus`;
if (params !== '') {
url = `${VITE_APP_SERVER_URL}/european-projects/analysis-synthese-focus?${params}`;
let url = `${VITE_APP_SERVER_URL}/european-projects/synthesis-focus`;
if (params !== "") {
url = `${VITE_APP_SERVER_URL}/european-projects/synthesis-focus?${params}`;
}

return fetch(url).then((response) => (response.json()))
return fetch(url).then((response) => response.json());
}

Loading

0 comments on commit 0e366c5

Please sign in to comment.