feat: add api base

This commit is contained in:
tim
2025-07-12 11:10:12 +08:00
parent bc065a073a
commit 45602dd3be
2 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,9 @@
export async function onRequest({ request }) {
const url = new URL(request.url)
url.hostname = '129.204.254.110'
url.port = '8080'
url.protocol = 'http:'
// 直接透传:不区分 user/category
return fetch(url, request)
}