This commit is contained in:
HAM!DREZA
2024-05-31 00:03:10 +03:30
parent fd5b06c2d7
commit 2242ed022f
17 changed files with 379 additions and 96 deletions
-2
View File
@@ -3,7 +3,6 @@ export default defineEventHandler(async (event) => {
const { public: { apiBase } } = useRuntimeConfig();
const token = getCookie(event, 'token');
const body = await readBody(event);
console.log('bod' , body);
try {
const data = await $fetch(`${apiBase}/ticket/message`, {
method: 'POST',
@@ -13,7 +12,6 @@ console.log('bod' , body);
},
body
});
console.log('new :', data);
return data;
} catch (error) {
// if (error.statusCode == 401) {