diff --git a/client/api/index.ts b/client/api/index.ts index cc14df0..26f4547 100644 --- a/client/api/index.ts +++ b/client/api/index.ts @@ -169,6 +169,14 @@ const index = { }, }); }, + + getZonesByDepartement(depCode: string): Promise { + const runtimeConfig = useRuntimeConfig(); + return useFetch(`zones/departement/${depCode}`, { + method: 'GET', + baseURL: runtimeConfig.public.apiSecheresseUrl, + }); + }, }; const _formatAddresses = (response: string): Address[] => { diff --git a/client/components/accueil/Presentation.vue b/client/components/accueil/Presentation.vue index 48462ba..fb39b99 100644 --- a/client/components/accueil/Presentation.vue +++ b/client/components/accueil/Presentation.vue @@ -1,16 +1,52 @@