se agrega los requerimientos de la LODPD con firma de documentos

This commit is contained in:
2026-04-07 15:14:44 -05:00
parent 408a9b4435
commit 46a11728b8
31 changed files with 1432 additions and 52 deletions
+5 -1
View File
@@ -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');
+7
View File
@@ -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
View File
@@ -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' });