이거를 이런식으로하는거맞나요?
const testAxios = async () => {
try {
const res = await axios.get(
'http://localhost:8080/v1/categories/fruity',
{
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',
},
},
)
console.log(res)
} catch (error) {
console.error('Error fetching data:', error)
}
}
testAxios()