Axios 및 Prisma와 함께 vue3을 사용하고 있는데 사용자 정보를 가져오는 데 문제가 있습니다.
내 우편 배달부 요청은 작동하지만(http://localhost:3000/api/auth/user/7), 내 axios 요청은 작동하지 않습니다.
도와주실 수 있나요?
async created () { const response = await axios.get('http://localhost:3000/api/auth/user/:id', { headers: { Authorization: 'Bearer ' + localStorage.getItem('token') } }); console.log('ici'); }