Skip to content

Commit

Permalink
Merge pull request #96 from IrvingYHM/prueba
Browse files Browse the repository at this point in the history
rutas
  • Loading branch information
jul1oCesar0 authored Nov 20, 2024
2 parents 101000d + 6af3605 commit 5c63f09
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/views/Admin/Empleados/iniciarSEmpleado.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function App() {
if (captcha.current.getValue()) {
console.log("El usuario no es un robot");
try {
const response = await fetch("http://localhost:3000/empleados/login", {
const response = await fetch("https://backopt-production.up.railway.app/empleados/login", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion src/views/Perfil/CambiarContra.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function App() {

try {
const response = await fetch(
`http://localhost:3000/clientes/clientes/${clienteId}/password`,
`https://backopt-production.up.railway.app/clientes/clientes/${clienteId}/password`,
{
method: "POST",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion src/views/Perfil/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function ProfileCard() {
const fetchProfileData = async (clienteId) => {
try {
const response = await fetch(
`http://localhost:3000/clientes/id/${clienteId}`
`https://backopt-production.up.railway.app/clientes/id/${clienteId}`
);
const data = await response.json();
setProfileData(data);
Expand Down
2 changes: 1 addition & 1 deletion src/views/Perfil/cambioCon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const CambioContrasena = () => {
async function cambiarContraseña(nuevaContraseña) {
try {
const response = await fetch(
`http://localhost:3000/clientes/${clienteId}/password`, // Modificado para incluir el id del cliente
`https://backopt-production.up.railway.app/clientes/${clienteId}/password`, // Modificado para incluir el id del cliente
{
method: "POST",
headers: {
Expand Down
4 changes: 2 additions & 2 deletions src/views/Perfil/verDireccion.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function VerEditarDireccion() {

useEffect(() => {
if (clienteId) {
fetch(`http://localhost:3000/clientes/clientes/${clienteId}/direccion`)
fetch(`https://backopt-production.up.railway.app/clientes/clientes/${clienteId}/direccion`)
.then((response) => {
if (!response.ok) {
throw new Error("Error al obtener la dirección del cliente");
Expand All @@ -57,7 +57,7 @@ function VerEditarDireccion() {
};

const guardarCambios = () => {
fetch(`http://localhost:3000/clientes/actualizar/${clienteId}/direccion`, {
fetch(`https://backopt-production.up.railway.app/clientes/actualizar/${clienteId}/direccion`, {
method: "PUT",
headers: {
"Content-Type": "application/json",
Expand Down
2 changes: 1 addition & 1 deletion src/views/iniciarS.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ useEffect(() => {
console.log("El usuario no es un robot");
try {
const response = await fetch(
"http://localhost:3000/auth/login",
"https://backopt-production.up.railway.app/auth/login",
{
method: "POST",
headers: {
Expand Down

0 comments on commit 5c63f09

Please sign in to comment.