register -> user 로 axios 경로 변경

This commit is contained in:
yoon 2025-01-23 09:50:28 +09:00
parent aeecd3836d
commit 5095f68d6b

View File

@ -240,7 +240,7 @@
// //
const checkIdDuplicate = async () => { const checkIdDuplicate = async () => {
const response = await $api.get(`/register/checkId?memberIds=${id.value}`); const response = await $api.get(`/user/checkId?memberIds=${id.value}`);
if (!response.data.data) { if (!response.data.data) {
idErrorAlert.value = true; idErrorAlert.value = true;
@ -253,7 +253,7 @@
const Colors = async () => { const Colors = async () => {
try { try {
const response = await $api.get('/register/color'); const response = await $api.get('/user/color');
colorList.value = response.data.data.map(item => ({ colorList.value = response.data.data.map(item => ({
label: item.CMNCODNAM, label: item.CMNCODNAM,
value: item.CMNCODVAL value: item.CMNCODVAL
@ -265,7 +265,7 @@
const Mbtis = async () => { const Mbtis = async () => {
try { try {
const response = await $api.get('/register/mbti'); const response = await $api.get('/user/mbti');
mbtiList.value = response.data.data.map(item => ({ mbtiList.value = response.data.data.map(item => ({
label: item.CMNCODNAM, label: item.CMNCODNAM,
value: item.CMNCODVAL value: item.CMNCODVAL
@ -339,7 +339,7 @@
formData.append('profile', profile.value); formData.append('profile', profile.value);
} }
const response = await $api.post('/register/join', formData, { isFormData : true }); const response = await $api.post('/user/join', formData, { isFormData : true });
if (response.status === 200) { if (response.status === 200) {
toastStore.onToast('등록신청이 완료되었습니다. 관리자 승인 후 이용가능합니다.', 's'); toastStore.onToast('등록신청이 완료되었습니다. 관리자 승인 후 이용가능합니다.', 's');