Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion front/src/jp/pages/chat/chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Chat = () => {
const connect = () => {
if (stompClient.current && stompClient.current.connected) return;
const socketFactory = () => {
const socket = new WebSocket("wss://i12a703.p.ssafy.io/ws-connect");
const socket = new WebSocket("wss://docshund.site/ws-connect");
socket.onerror = (event) => {
// console.error("WebSocket Error:", event);
toast.error("웹소켓 연결 오류가 발생했습니다.", {
Expand Down
2 changes: 1 addition & 1 deletion front/src/kr/pages/chat/chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Chat = () => {
const connect = () => {
if (stompClient.current && stompClient.current.connected) return;
const socketFactory = () => {
const socket = new WebSocket("wss://i12a703.p.ssafy.io/ws-connect");
const socket = new WebSocket("wss://docshund.site/ws-connect");
socket.onerror = (event) => {
// console.error("WebSocket Error:", event);
toast.error("웹소켓 연결 오류가 발생했습니다.", {
Expand Down
10 changes: 5 additions & 5 deletions front/src/services/notificationService.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const NotificationService = {
async fetchNotifications() {
try {
const response = await axiosJsonInstance.get(
`https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 불러오기
`https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 불러오기
);

const data = response.data;
Expand All @@ -22,7 +22,7 @@ const NotificationService = {
async readNotification(alertId) {
try {
const response = await axiosJsonInstance.patch(
`https://i12a703.p.ssafy.io/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 불러오기
`https://docshund.site/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 불러오기
);

const status = response.status;
Expand All @@ -38,7 +38,7 @@ const NotificationService = {
async readAllNotifications() {
try {
const response = await axiosJsonInstance.patch(
`https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 전체 읽음 처리
`https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 전체 읽음 처리
);

const status = response.status;
Expand All @@ -54,7 +54,7 @@ const NotificationService = {
async deleteNotification(alertId) {
try {
const response = await axiosJsonInstance.delete(
`https://i12a703.p.ssafy.io/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 삭제
`https://docshund.site/api/v1/docshund/alerts/${alertId}` // 알림 ID로 알림 삭제
);

const status = response.status;
Expand All @@ -70,7 +70,7 @@ const NotificationService = {
async deleteAllNotifications() {
try {
const response = await axiosJsonInstance.delete(
`https://i12a703.p.ssafy.io/api/v1/docshund/alerts` // 유저 ID로 알림 전체 삭제
`https://docshund.site/api/v1/docshund/alerts` // 유저 ID로 알림 전체 삭제
);

const status = response.status;
Expand Down
4 changes: 2 additions & 2 deletions front/src/store/authStore.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ const useAuthStore = create((set, get) => ({

loginWithGoogle: () => {
window.location.href =
"https://i12a703.p.ssafy.io/oauth2/authorization/google";
"https://docshund.site/oauth2/authorization/google";
},

// GitHub 로그인 함수
loginWithGithub: () => {
// GitHub 로그인 페이지로 리다이렉트
window.location.href =
"https://i12a703.p.ssafy.io/oauth2/authorization/github";
"https://docshund.site/oauth2/authorization/github";
},

// 로그아웃 함수
Expand Down