diff --git a/src/auth/auth.js b/src/auth/auth.js index 44477dc..c94e13a 100644 --- a/src/auth/auth.js +++ b/src/auth/auth.js @@ -6,7 +6,7 @@ export const authLogin = async (email, password) => { password: password, }; - const baseURL = "http://api.rufftv.com/api/auth/login"; + const baseURL = "https://api.rufftv.com/api/auth/login"; const config = { headers: { @@ -26,7 +26,7 @@ export const authLogout = () => { export const authGetCurrentUserInfo = async () => { try { - const response = await axios.get("http://api.rufftv.com/api/auth", { + const response = await axios.get("https://api.rufftv.com/api/auth", { headers: { authorization: window.localStorage.getItem("authorization"), }, @@ -59,7 +59,7 @@ export const authRegister = async (email, password, username) => { profilePic: img, }; - const baseURL = "http://api.rufftv.com/api/auth/register"; + const baseURL = "https://api.rufftv.com/api/auth/register"; const config = { headers: { diff --git a/src/pages/Home/Home.jsx b/src/pages/Home/Home.jsx index 7e6290e..ef03233 100644 --- a/src/pages/Home/Home.jsx +++ b/src/pages/Home/Home.jsx @@ -13,7 +13,7 @@ const Home = () => { useEffect(() => { const getLists = async () => { - const baseURL = "http://api.rufftv.com/api"; + const baseURL = "https://api.rufftv.com/api"; try { const listres = await axios.get(baseURL + "/lists", { headers: { diff --git a/src/pages/Watch/Watch.jsx b/src/pages/Watch/Watch.jsx index 04bff4a..b13604f 100644 --- a/src/pages/Watch/Watch.jsx +++ b/src/pages/Watch/Watch.jsx @@ -18,7 +18,7 @@ export default function Watch() { }, [params.movieId]); const fetchMovie = async (movieId) => { - const baseURL = "http://api.rufftv.com/api"; + const baseURL = "https://api.rufftv.com/api"; try { setFetching(true); const res = await axios.get(baseURL + "/movies/find/" + movieId, {