mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 03:09:14 +08:00
fix: proxy api
This commit is contained in:
parent
0f8ec14ddf
commit
26c1c7cf92
@ -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}`)
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user