Skip to content

Commit

Permalink
refactor: Update API URLs to use production environment and remove un…
Browse files Browse the repository at this point in the history
…used code
  • Loading branch information
Mohamed-Ramadan1 committed Jun 1, 2024
1 parent 7811abd commit d70ad4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/store/userSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { toast } from "react-toastify";
import { cleareStatus } from "./authHandler";

//Bas URL
const authUrl = `http://localhost:3000/api/v1/auth`;
const userUrl = `http://localhost:3000/api/v1/users`;
// const authUrl = `http://localhost:3000/api/v1/auth`;
// const userUrl = `http://localhost:3000/api/v1/users`;

// const authUrl = `https://e-learning-backend-application.onrender.com/api/v1/auth`;
// const userUrl = `https://e-learning-backend-application.onrender.com/api/v1/users`;
const authUrl = `https://e-learning-backend-application.onrender.com/api/v1/auth`;
const userUrl = `https://e-learning-backend-application.onrender.com/api/v1/users`;

//SignUp new user to the application
export const signUp = createAsyncThunk(
Expand Down
2 changes: 1 addition & 1 deletion src/utils/customFetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ const productionUrl =
"https://e-learning-backend-application.onrender.com/api/v1";

export const customFetch = axios.create({
baseURL: devURL,
baseURL: productionUrl,
});

0 comments on commit d70ad4e

Please sign in to comment.