Skip to content

Commit

Permalink
Configure requests for HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
VincenzoMeschi committed Dec 26, 2023
1 parent d7a30c5 commit 9075cec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/auth/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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"),
},
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Watch/Watch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 9075cec

Please sign in to comment.