update
This commit is contained in:
@@ -3,7 +3,7 @@ export default defineEventHandler(async (event) => {
|
||||
const { public: { apiBase } } = useRuntimeConfig();
|
||||
const token = getCookie(event, 'token');
|
||||
const body = await readBody(event);
|
||||
console.log('body', body.id);
|
||||
console.log('badane :', body);
|
||||
try {
|
||||
const data = await $fetch(`${apiBase}/ticket/${body.id}`, {
|
||||
method: 'GET',
|
||||
@@ -13,7 +13,6 @@ console.log('body', body.id);
|
||||
},
|
||||
id: body.id
|
||||
});
|
||||
console.log('tttt :', data);
|
||||
return data;
|
||||
} catch (error) {
|
||||
return error;
|
||||
|
||||
Reference in New Issue
Block a user