Skip to content

Commit

Permalink
Merge pull request #65 from Triumers/feat/user
Browse files Browse the repository at this point in the history
  • Loading branch information
noctesilente authored Jun 12, 2024
2 parents ed146b4 + 52594d9 commit 960d82b
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 960d82b

Please sign in to comment.