Merge branch 'dev' into feat/consultation-82

This commit is contained in:
2025-10-08 07:55:22 +07:00
287 changed files with 11638 additions and 2332 deletions
+5 -1
View File
@@ -6,7 +6,10 @@ export default defineEventHandler(async (event) => {
const config = useRuntimeConfig()
const apiOrigin = config.public.API_ORIGIN
const externalUrl = apiOrigin + url.pathname.replace(/^\/api/, '') + url.search
const cleanOrigin = apiOrigin.replace(/\/+$/, '')
const cleanPath = url.pathname.replace(/^\/api\//, '').replace(/^\/+/, '')
const externalUrl = `${cleanOrigin}/${cleanPath}${url.search}`
const resp = await fetch(externalUrl, {
method: 'POST',
@@ -16,6 +19,7 @@ export default defineEventHandler(async (event) => {
},
})
console.log(resp)
if (resp.status === 200) {
const data = await resp.json()