Skip to content

Commit

Permalink
Merge pull request #117 from pknu-wap/fix/#116-serverAdd_http_and_red…
Browse files Browse the repository at this point in the history
…irects

[fix] 서버주소 http 복구 및 리다이렉션 설정추가
  • Loading branch information
seongwon030 authored Dec 21, 2024
2 parents f71fe1c + 292a8b8 commit 113a033
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion client/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
/* /index.html 200
/* /index.html 200
/api/* http://34.64.179.51:8080/:splat 200
/auth/admins/register http://34.64.179.51:8080/auth/admins/register 200
/auth/admins/login http://34.64.179.51:8080/auth/admins/login 200
2 changes: 1 addition & 1 deletion client/src/api/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Cookies from 'js-cookie';

// Axios 클라이언트 생성
const apiClient = axios.create({
baseURL: 'https://zepelown.site/api', // 기본 API URL 설정
baseURL: 'http://34.64.179.51:8080/api', // 기본 API URL 설정
});

// 요청 인터셉터
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/logIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const logIn = async (
try {
// 로그인 API 호출
const response = await axios.post<RegisterResponse>(
'https://zepelown.site/auth/admins/login',
'http://34.64.179.51:8080/auth/admins/login',
{
name: name,
password: password,
Expand Down
2 changes: 1 addition & 1 deletion client/src/api/signUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const signUp = (
email: string,
): Promise<AxiosResponse | null> => {
return axios
.post('https://zepelown.site/auth/admins/register', {
.post('http://34.64.179.51:8080/auth/admins/register', {
name: name,
password: password,
email: email,
Expand Down

0 comments on commit 113a033

Please sign in to comment.