fix: proxy api

This commit is contained in:
Ou 2024-09-30 01:50:58 +08:00
parent 0f8ec14ddf
commit 26c1c7cf92

View File

@ -4,5 +4,5 @@ export default defineEventHandler(async (event) => {
const id = getRouterParam(event, "id")
const { latest } = getQuery(event)
if (latest !== undefined) return await sendProxy(event, `https://smzdk.top/api/${id}/new`)
return await sendProxy(event, `https://smzdk.top/api/${id}/new`)
return await sendProxy(event, `https://smzdk.top/api/${id}`)
})