export default defineEventHandler(async (event) => { const { public: { apiBase } } = useRuntimeConfig(); const token = getCookie(event, 'token'); const body = await readBody(event); console.log('badane :', body); try { const data = await $fetch(`${apiBase}/ticket/${body.id}`, { method: 'GET', headers: { 'Accept': 'application/json', 'Authorization': `Bearer ${token}` }, id: body.id }); return data; } catch (error) { return error; } })