fixed faq bugs

This commit is contained in:
HAM!DREZA
2024-07-02 18:19:51 +03:30
parent a8e723ddf0
commit d2f71b6b14
21 changed files with 205 additions and 307 deletions
+3 -4
View File
@@ -1,16 +1,15 @@
export default defineEventHandler(async (event) => {
const { public: { apiBase } } = useRuntimeConfig();
const token = getCookie(event, 'token');
const body = await readBody(event);
const query = getQuery(event);
try {
const data = await $fetch(`${apiBase}/ticket/${body.id}`, {
const data = await $fetch(`${apiBase}/ticket/${query.id}`, {
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': `Bearer ${token}`
},
id: body.id
}
});
return data;
} catch (error) {