SE MODIFICO EL API_URL
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
import { fetchWithAuth } from '../fetchWithAuth';
|
import { fetchWithAuth } from '../fetchWithAuth';
|
||||||
|
|
||||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
const API_BASE_URL = import.meta.env.VITE_EFC_API_URL;
|
||||||
? 'https://your-production-api.com/api/v1'
|
|
||||||
: 'http://192.168.1.79:8000/api/v1';
|
|
||||||
|
|
||||||
export const fetchPedimentoCoves = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
export const fetchPedimentoCoves = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { fetchWithAuth } from '../fetchWithAuth';
|
import { fetchWithAuth } from '../fetchWithAuth';
|
||||||
|
|
||||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
const API_BASE_URL = import.meta.env.VITE_EFC_API_URL;
|
||||||
? 'https://your-production-api.com/api/v1'
|
|
||||||
: 'http://192.168.1.79:8000/api/v1';
|
|
||||||
|
|
||||||
export const fetchPedimentoEdocuments = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
export const fetchPedimentoEdocuments = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
import { fetchWithAuth } from '../fetchWithAuth';
|
import { fetchWithAuth } from '../fetchWithAuth';
|
||||||
|
|
||||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
const API_BASE_URL = import.meta.env.VITE_EFC_API_URL;
|
||||||
? 'https://your-production-api.com/api/v1'
|
|
||||||
: 'http://192.168.1.79:8000/api/v1';
|
|
||||||
|
|
||||||
export const fetchPedimentoProcesos = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
export const fetchPedimentoProcesos = async (pedimentoId, page = 1, pageSize = 10, filters = {}) => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export default function PasswordResetConfirm() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
// POST a la ruta real del backend (URL absoluta)
|
// POST a la ruta real del backend (URL absoluta)
|
||||||
const apiUrl = `http://192.168.1.195:8000/api/v1/user/password-reset-confirm/${uid}/${token}/`;
|
const apiUrl = `${import.meta.env.VITE_EFC_API_URL}/user/password-reset-confirm/${uid}/${token}/`;
|
||||||
const res = await fetch(apiUrl, {
|
const res = await fetch(apiUrl, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: { 'Content-Type': 'application/json' },
|
||||||
|
|||||||
Reference in New Issue
Block a user