Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3563 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 startQuiz = async (url) => {
3
export const startQuiz = async (url) => {
4
  try {
4
  try {
5
    return await api.post(url);
5
    return await api.post(url);
6
  } catch (error) {
6
  } catch (error) {
7
    console.error(error);
7
    console.error(error);
8
    throw new Error('Error al iniciar el questionario, por favor intente más tarde');
8
    throw new Error('Error al iniciar el questionario, por favor intente más tarde');
9
  }
9
  }
10
};
10
};