Skip to content

Commit 0982bc0

Browse files
committed
change http to https
1 parent ee44250 commit 0982bc0

File tree

12 files changed

+16
-16
lines changed

12 files changed

+16
-16
lines changed

app/components/profile_components/EditProfilePopup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const EditProfilePopup = ({ setIsEditProfileClicked, userAddress, subId }: Props
4242
interest: categoryValue.interests,
4343
location: "",
4444
};
45-
fetch(`http://${IP_ADDRESS}/v1.0/voyager/user`, {
45+
fetch(`https://${IP_ADDRESS}/v1.0/voyager/user`, {
4646
method: "PATCH",
4747
headers: {
4848
"Content-Type": "application/json",

app/components/random_chat_components/CategoriesAndGenderDetailsPopup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const CategoriesAndGenderDetailsPopup = () => {
4949
updateUserData();
5050

5151
const list: RandomCandidate[] = await fetch(
52-
`http://${IP_ADDRESS}/v1.0/voyager/user/list-users-interest/${interestValue}/${userId}`,
52+
`https://${IP_ADDRESS}/v1.0/voyager/user/list-users-interest/${interestValue}/${userId}`,
5353
{
5454
method: "GET",
5555
headers: {
@@ -82,7 +82,7 @@ const CategoriesAndGenderDetailsPopup = () => {
8282
sub_id: subId,
8383
interest: interestValue,
8484
};
85-
await fetch(`http://${IP_ADDRESS}/v1.0/voyager/user`, {
85+
await fetch(`https://${IP_ADDRESS}/v1.0/voyager/user`, {
8686
method: "PATCH",
8787
headers: {
8888
"Content-Type": "application/json",

app/components/random_chat_components/RandomChatNavbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const RandomChatNavbar = ({ like, setLike, setFriendList }: Props) => {
4545
friends: friendId,
4646
};
4747

48-
await fetch(`http://${IP_ADDRESS}/v1.0/voyager/user_friends`, {
48+
await fetch(`https://${IP_ADDRESS}/v1.0/voyager/user_friends`, {
4949
method: "POST",
5050
headers: {
5151
"Content-Type": "application/json",
@@ -69,7 +69,7 @@ const RandomChatNavbar = ({ like, setLike, setFriendList }: Props) => {
6969

7070
async function getUpdatedFriendList() {
7171
const userFriends: UserFriendInterface[] = await fetch(
72-
`http://${IP_ADDRESS}/v1.0/voyager/user_friends/${cachedUserId}`,
72+
`https://${IP_ADDRESS}/v1.0/voyager/user_friends/${cachedUserId}`,
7373
{
7474
method: "GET",
7575
headers: {

app/components/random_chat_components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const Sidebar = ({ friendList, setFriendList, setLike }: Props) => {
3333
if (typeof window !== undefined) {
3434
const userId = localStorage.getItem("userId");
3535
const userFriends: UserFriendInterface[] = await fetch(
36-
`http://${IP_ADDRESS}/v1.0/voyager/user_friends/${userId}`,
36+
`https://${IP_ADDRESS}/v1.0/voyager/user_friends/${userId}`,
3737
{
3838
method: "GET",
3939
headers: {

app/components/random_chat_components/SidebarList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const SidebarList = ({
3030
if (typeof window !== undefined) {
3131
const userId = localStorage.getItem("userId");
3232
fetch(
33-
`http://${IP_ADDRESS}/v1.0/voyager/user_friends/${userId}/${userData.friends}`,
33+
`https://${IP_ADDRESS}/v1.0/voyager/user_friends/${userId}/${userData.friends}`,
3434
{
3535
method: "DELETE",
3636
headers: {

app/components/reusable/CategoriesDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CategoriesDropdown = ({
3636
if (!isMenuOpen) {
3737
try {
3838
const response = await fetch(
39-
`http://${IP_ADDRESS}/v1.0/voyager/categories/${category}`
39+
`https://${IP_ADDRESS}/v1.0/voyager/categories/${category}`
4040
);
4141
const list = await response.json();
4242
if (category === "interests") {

app/utils/Zklogin.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export const Zklogin = ({
9595
let getUserData;
9696
// send a get request to get data of user saved in db.
9797
getUserData = await fetch(
98-
`http://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${userData.sub}`,
98+
`https://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${userData.sub}`,
9999
{
100100
method: "GET",
101101
headers: {
@@ -135,7 +135,7 @@ export const Zklogin = ({
135135
if (typeof window !== "undefined") {
136136
localStorage.setItem("userId", newUserData.id);
137137
}
138-
fetch(`http://${IP_ADDRESS}/v1.0/voyager/user`, {
138+
fetch(`https://${IP_ADDRESS}/v1.0/voyager/user`, {
139139
method: "POST",
140140
headers: {
141141
"Content-Type": "application/json",

app/utils/getUserByIdFunction.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const IP_ADDRESS = process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS;
33
export async function getUserByIdFunction(userId: string | null) {
44
// send a get request to get data of user saved in db.
55
const response = await fetch(
6-
`http://${IP_ADDRESS}/v1.0/voyager/user/${userId}`,
6+
`https://${IP_ADDRESS}/v1.0/voyager/user/${userId}`,
77
{
88
method: "GET",
99
headers: {

app/voyager/cult/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const Cult = () => {
9696
setUserAddress(userData.userAddr);
9797
let getUserData;
9898
getUserData = await fetch(
99-
`http://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${userData.sub}`,
99+
`https://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${userData.sub}`,
100100
{
101101
method: "GET",
102102
headers: {
@@ -127,7 +127,7 @@ const Cult = () => {
127127
name: "",
128128
provider: userData,
129129
};
130-
fetch(`http://${IP_ADDRESS}/v1.0/voyager/user`, {
130+
fetch(`https://${IP_ADDRESS}/v1.0/voyager/user`, {
131131
method: "POST",
132132
headers: {
133133
"Content-Type": "application/json",

app/voyager/profile/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const FriendProfile = () => {
9292
(async function () {
9393
// send a get request to get data of user saved in db.
9494
getUserData = await fetch(
95-
`http://${IP_ADDRESS}/v1.0/voyager/user/${params.id}`,
95+
`https://${IP_ADDRESS}/v1.0/voyager/user/${params.id}`,
9696
{
9797
method: "GET",
9898
headers: {

app/voyager/profile/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const Profile = () => {
4444
(async function () {
4545
// send a get request to get data of user saved in db.
4646
getUserData = await fetch(
47-
`http://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${subId}`,
47+
`https://${IP_ADDRESS}/v1.0/voyager/user/sub-id/${subId}`,
4848
{
4949
method: "GET",
5050
headers: {

app/voyager/random_chat/[id]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const NewChat = () => {
3535
const params = useParams();
3636
const receiverUserId = params.id;
3737

38-
const IP_ADDRESS = process.env.NEXT_PUBLIC_SERVER_IP_ADDRESS;
38+
const IP_ADDRESS = process.env.NEXT_PUBLIC_WEB_SOCKET_SERVER_IP_ADDRESS;
3939

4040
useEffect(() => {
4141
if (typeof window !== undefined) {

0 commit comments

Comments
 (0)