Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3661 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 3661 Rev 3719
Línea 1... Línea 1...
1
import { api } from '@shared/libs';
1
import { api } from '@shared/libs';
2
 
2
 
3
export const getProfile = async () => {
3
export const getProfile = async () => {
4
  try {
4
  try {
5
    return await api.get('/microlearning/profile');
5
    return await api.get('/microlearning/profile');
6
  } catch (error) {
6
  } catch (error) {
7
    console.error(error);
7
    console.error(error);
8
    throw new Error('Error al obtener el perfil');
8
    throw new Error('Error al obtener el perfil');
9
  }
9
  }
10
};
10
};