Proyectos de Subversion LeadersLinked - SPA

Rev

Rev 3741 | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
3741 stevensc 1
import { api } from '@shared/libs';
2
 
3
export const getQuestions = (params) => {
4
  return api.get('/my-coach/questions', { params });
5
};
6
 
3746 stevensc 7
export const getQuestion = (uuid) => {
8
  return api.get(`/my-coach/questions/view/${uuid}`);
9
};
10
 
3741 stevensc 11
export const getQuestionsCategories = () => {
12
  return api.get('/my-coach');
13
};
14
 
15
export const addQuestion = (data) => {
16
  return api.post('/my-coach/questions/add', data);
17
};
18
 
19
export const editQuestion = (url, data) => {
20
  return api.post(url, data);
21
};
22
 
23
export const deleteQuestion = (url) => {
24
  return api.post(url);
25
};