Cambio de direcciones
This commit is contained in:
@@ -21,7 +21,7 @@ export default function Page() {
|
||||
|
||||
const handleLogin = async () => {
|
||||
try {
|
||||
const response = await axios.post("http://localhost:4000/login", {
|
||||
const response = await axios.post("https://venus.acatlan.unam.mx/servicios_pcpuma_test/login", {
|
||||
email: email,
|
||||
password: password,
|
||||
});
|
||||
@@ -57,7 +57,7 @@ export default function Page() {
|
||||
transition={{ delay: 0, duration: 0.5 }}
|
||||
>
|
||||
<h2 className="text-dorado">Bienvenido al sistema de</h2>
|
||||
<h1 className="text-azul">Servicios PCPUMA y CEDETEC</h1>
|
||||
<h1 className="text-azul">Servicios PC PUMA y CEDETEC</h1>
|
||||
<SimpleInput
|
||||
label="Usuario"
|
||||
className={{
|
||||
|
||||
@@ -88,7 +88,7 @@ const FormularioCargaIndividual = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const response = await fetch("http://localhost:4000/excel/carga", {
|
||||
const response = await fetch("https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/carga", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Dashboard() {
|
||||
const token = localStorage.getItem("token");
|
||||
if (!token) return;
|
||||
|
||||
const res = await fetch("http://localhost:4000/excel/movimientos", {
|
||||
const res = await fetch("https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/movimientos", {
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
@@ -57,7 +57,7 @@ export default function Dashboard() {
|
||||
}
|
||||
|
||||
try {
|
||||
const response = await fetch("http://localhost:4000/excel/download", {
|
||||
const response = await fetch("https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/download", {
|
||||
method: "GET",
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function LandingBody() {
|
||||
>
|
||||
<IconCircle delay={2} />
|
||||
|
||||
<strong>Servicios PCPUMA y CEDETEC</strong>
|
||||
<strong className="text-dorado">Servicios PC PUMA y CEDETEC</strong>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
@@ -22,7 +22,7 @@ export default function Consulta() {
|
||||
setResultados([]);
|
||||
|
||||
try {
|
||||
const res = await fetch(`http://localhost:4000/usuarios/${value}`);
|
||||
const res = await fetch(`https://venus.acatlan.unam.mx/servicios_pcpuma_test/usuarios/${value}`);
|
||||
|
||||
if (!res.ok) {
|
||||
const errData = await res.json();
|
||||
@@ -67,7 +67,7 @@ export default function Consulta() {
|
||||
cursor: "pointer"
|
||||
}}
|
||||
>
|
||||
{loading ? "Buascando..." : "Buascar"}
|
||||
{loading ? "Buscando..." : "Buscar"}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -82,6 +82,7 @@ export default function Consulta() {
|
||||
<table
|
||||
style={{
|
||||
marginTop: "2rem",
|
||||
marginBottom: "3rem",
|
||||
background: "#fff",
|
||||
borderCollapse: "collapse",
|
||||
width: "100%",
|
||||
|
||||
@@ -24,7 +24,7 @@ const CargaArchivo: React.FC = () => {
|
||||
formData.append("file", archivo);
|
||||
|
||||
try {
|
||||
const res = await fetch("http://localhost:4000/excel/load", {
|
||||
const res = await fetch("https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/load", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
||||
@@ -16,7 +16,7 @@ const FuenteCard: React.FC<FuenteCardProps> = ({ nombre, fecha, activa, id_mov }
|
||||
}
|
||||
|
||||
try {
|
||||
const res = await fetch(`http://localhost:4000/excel/activar-servicios/${id_mov}`, {
|
||||
const res = await fetch(`https://venus.acatlan.unam.mx/servicios_pcpuma_test/excel/activar-servicios/${id_mov}`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
||||
@@ -18,7 +18,7 @@ export default function LoginPage() {
|
||||
|
||||
const handleLogin = async () => {
|
||||
try {
|
||||
const response = await axios.post("http://localhost:4000/login", {
|
||||
const response = await axios.post("https://venus.acatlan.unam.mx/servicios_pcpuma_test/login", {
|
||||
email: email,
|
||||
password: password,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user