From 85f8314103591927014dfbc9f80587e8833990c0 Mon Sep 17 00:00:00 2001 From: Arturo Buono Date: Mon, 20 Nov 2023 10:15:55 +0100 Subject: [PATCH] feat(fe-piattaforma): updates 20231120 fix-endpoint --- fe-piattaforma/.env | 6 +++--- fe-piattaforma/.env.local | 6 +++--- .../src/redux/features/citizensArea/citizensAreaThunk.ts | 2 +- fe-piattaforma/src/redux/features/forum/forumThunk.ts | 2 +- fe-piattaforma/src/redux/features/user/userThunk.ts | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/fe-piattaforma/.env b/fe-piattaforma/.env index a35d46b40..08eddabe6 100644 --- a/fe-piattaforma/.env +++ b/fe-piattaforma/.env @@ -1,7 +1,7 @@ REACT_APP_BE_BASE_URL={{_REACT_APP_BE_BASE_URL_}} -GESTIONE_UTENTE=utente -NOTIFICHE=notifiche -QUESTIONARIO_CITTADINO=servizio +GESTIONE_UTENTE= +NOTIFICHE= +QUESTIONARIO_CITTADINO= REACT_APP_DASHBOARD_BASE_URL={{_REACT_APP_DASHBOARD_BASE_URL_}} diff --git a/fe-piattaforma/.env.local b/fe-piattaforma/.env.local index cf1cbfbc0..e48faf9e9 100644 --- a/fe-piattaforma/.env.local +++ b/fe-piattaforma/.env.local @@ -1,7 +1,7 @@ REACT_APP_BE_BASE_URL=http://localhost:8080 -GESTIONE_UTENTE=utente -NOTIFICHE=notifiche -QUESTIONARIO_CITTADINO=servizio +GESTIONE_UTENTE= +NOTIFICHE= +QUESTIONARIO_CITTADINO= REACT_APP_DASHBOARD_BASE_URL={{_REACT_APP_DASHBOARD_BASE_URL_}} REACT_APP_DASHBOARD_BI_URL={{_REACT_APP_DASHBOARD_BI_URL_}} diff --git a/fe-piattaforma/src/redux/features/citizensArea/citizensAreaThunk.ts b/fe-piattaforma/src/redux/features/citizensArea/citizensAreaThunk.ts index 87eae17e4..216963808 100644 --- a/fe-piattaforma/src/redux/features/citizensArea/citizensAreaThunk.ts +++ b/fe-piattaforma/src/redux/features/citizensArea/citizensAreaThunk.ts @@ -135,7 +135,7 @@ export const GetEntityFilterValues = citizensArea: { filters }, } = select((state: RootState) => state); // } = select((state: RootState) => state); - const entityFilterEndpoint = `${process?.env?.QUESTIONARIO_CITTADINO}/cittadino/${entityFilter}/dropdown`; + const entityFilterEndpoint = `${process?.env?.QUESTIONARIO_CITTADINO}cittadino/${entityFilter}/dropdown`; const filtroRequest: { [key: string]: string[] | undefined; } = {}; diff --git a/fe-piattaforma/src/redux/features/forum/forumThunk.ts b/fe-piattaforma/src/redux/features/forum/forumThunk.ts index 4b418b888..311c9b1c0 100644 --- a/fe-piattaforma/src/redux/features/forum/forumThunk.ts +++ b/fe-piattaforma/src/redux/features/forum/forumThunk.ts @@ -35,7 +35,7 @@ export const proxyCall = async ( } const pass = false; if(body && body.cfUtenteLoggato && pass){ - return await API.post(`${process?.env?.NOTIFICHE}/drupal/forward`, { + return await API.post(`${process?.env?.NOTIFICHE}drupal/forward`, { url: `/api${url}`, metodoHttp: httpMethod, cfUtenteLoggato: codiceFiscale, diff --git a/fe-piattaforma/src/redux/features/user/userThunk.ts b/fe-piattaforma/src/redux/features/user/userThunk.ts index 057fec37f..67f32ad82 100644 --- a/fe-piattaforma/src/redux/features/user/userThunk.ts +++ b/fe-piattaforma/src/redux/features/user/userThunk.ts @@ -82,7 +82,7 @@ export const CreateUserContext = dispatch({ ...CreateUserContextAction, cfUtenteLoggato }); // TODO manage dispatch for dev env only dispatch(showLoader()); - const res = await API.post(`${process?.env?.GESTIONE_UTENTE}/contesto`, {cfUtenteLoggato}); + const res = await API.post(`${process?.env?.GESTIONE_UTENTE}contesto`, {cfUtenteLoggato}); if (res?.data) { dispatch(setUserContext(res.data)); @@ -133,7 +133,7 @@ export const SelectUserRole = } } } - const res = await API.post(`${process?.env?.GESTIONE_UTENTE}/contesto/sceltaProfilo`, request); + const res = await API.post(`${process?.env?.GESTIONE_UTENTE}contesto/sceltaProfilo`, request); if (res) { dispatch(setUserProfile({ ...profile, saveSession })); return true; @@ -160,7 +160,7 @@ export const EditUser = }, } = select((state: RootState) => state); if (newUser?.codiceFiscale === codiceFiscale) { - const res = await API.post(`${process?.env?.GESTIONE_UTENTE}/contesto/confermaIntegrazione`, { + const res = await API.post(`${process?.env?.GESTIONE_UTENTE}contesto/confermaIntegrazione`, { ...newUser, abilitazioneConsensoTrattamentoDatiPersonali: true, });