Feat CarouselNacional y Fix Workers
This commit is contained in:
@@ -317,4 +317,15 @@ export const getHomeResumen = async (eleccionId: number, distritoId: string, cat
|
||||
const url = `/elecciones/home-resumen?${queryParams.toString()}`;
|
||||
const { data } = await apiClient.get(url);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const getHomeResumenNacional = async (eleccionId: number, categoriaId: number): Promise<CategoriaResumenHome> => {
|
||||
const queryParams = new URLSearchParams({
|
||||
eleccionId: eleccionId.toString(),
|
||||
categoriaId: categoriaId.toString(),
|
||||
});
|
||||
// Apunta al nuevo endpoint que creamos
|
||||
const url = `/elecciones/home-resumen-nacional?${queryParams.toString()}`;
|
||||
const { data } = await apiClient.get(url);
|
||||
return data;
|
||||
};
|
||||
Reference in New Issue
Block a user