se agrega los requerimientos de la LODPD con firma de documentos
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import client from './client';
|
||||
|
||||
export const register = (data) => client.post('/auth/register', data);
|
||||
export const register = (data) => client.post('/auth/register', data, {
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
});
|
||||
export const login = (data) => client.post('/auth/login', data);
|
||||
export const logout = (refreshToken) => client.post('/auth/logout', { refreshToken });
|
||||
export const getMe = () => client.get('/auth/me');
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
import client from './client';
|
||||
|
||||
export const listLegalDocuments = () => client.get('/legal');
|
||||
|
||||
export const downloadLegalDocument = (id) => client.get(`/legal/${id}/download`, {
|
||||
responseType: 'blob',
|
||||
});
|
||||
@@ -3,3 +3,6 @@ import axios from 'axios';
|
||||
const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:4000';
|
||||
|
||||
export const verifySignature = (code) => axios.get(`${API_URL}/signatures/verify/${code}`);
|
||||
export const getLegalTemplates = () => axios.get(`${API_URL}/legal/templates`);
|
||||
export const getLegalTemplatePreview = (slug) =>
|
||||
axios.get(`${API_URL}/legal/templates/${slug}/preview`, { responseType: 'blob' });
|
||||
|
||||
Reference in New Issue
Block a user