Respuestas y escaneo

This commit is contained in:
jalvarado
2025-04-03 15:37:35 -06:00
parent 236522a637
commit 5a3c1a5af7
23 changed files with 994 additions and 293 deletions
+13
View File
@@ -0,0 +1,13 @@
import axios from 'axios';
const API = process.env.NEXT_PUBLIC_API_URL;
const axiosInstance = axios.create({
baseURL: API, // Replace with your API base URL
timeout: 100000, // Request timeout in milliseconds
headers: {
'Content-Type': 'application/json',
},
});
export default axiosInstance;
+4
View File
@@ -0,0 +1,4 @@
export function formatearFecha(fecha: string, tipo: 'inicio' | 'fin'): string {
const sufijo = tipo === 'inicio' ? 'T00:00:01' : 'T23:59:59';
return `${fecha}${sufijo}`;
}