Skip to content

Commit

Permalink
fix(auth): 내 정보 수정 프로필 이미지 등록 오류 수정
Browse files Browse the repository at this point in the history
잘못된 타입 지정으로 인한 에러를 수정했습니다.
  • Loading branch information
moomint8 committed Jun 12, 2024
1 parent ed146b4 commit 52594d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/user/EditMyInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ onMounted(async () => {
async function fetchMyInfo() {
try {
const token = localStorage.getItem('token');
const response = await axios.get('http://triumers-back.ap-northeast-2.elasticbeanstalk.com/my-page', {
const response = await axios.get('/my-page', {
headers: {
Authorization: token,
},
Expand All @@ -65,9 +65,9 @@ async function updateMyInfo() {
if (selectedProfileImg.value) {
const formData = new FormData();
formData.append('file', selectedProfileImg.value);
formData.append('image', selectedProfileImg.value);
const uploadResponse = await axios.post('http://triumers-back.ap-northeast-2.elasticbeanstalk.com/s3/upload-image', formData, {
const uploadResponse = await axios.post('/s3/upload-image', formData, {
headers: {
Authorization: token,
'Content-Type': 'multipart/form-data',
Expand All @@ -84,7 +84,7 @@ async function updateMyInfo() {
profileImg: profileImgUrl
};
await axios.post('http://triumers-back.ap-northeast-2.elasticbeanstalk.com/auth/edit/my-info', requestData, {
await axios.post('/auth/edit/my-info', requestData, {
headers: {
Authorization: token,
'Content-Type': 'application/json',
Expand Down

0 comments on commit 52594d9

Please sign in to comment.