Se agrego modulo de reportes, en especifico el submodulo de reportes de Datastage

This commit is contained in:
2025-09-10 16:39:22 -06:00
parent 4ee5c0d19d
commit 6c020d4799
8 changed files with 3070 additions and 2453 deletions

View File

@@ -13,12 +13,12 @@ export async function login(username, password) {
return response.json(); // { access, refresh }
}
export async function refreshToken(refresh) {
const res = await fetch(`${API_URL}/token/refresh/`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ refresh }),
});
if (!res.ok) throw new Error('SESSION_EXPIRED');
return res.json(); // { access: '...' }
}
// export async function refreshToken(refresh) {
// const res = await fetch(`${API_URL}/token/refresh/`, {
// method: 'POST',
// headers: { 'Content-Type': 'application/json' },
// body: JSON.stringify({ refresh }),
// });
// if (!res.ok) throw new Error('SESSION_EXPIRED');
// return res.json(); // { access: '...' }
// }