mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-02-22 22:21:09 +08:00
feat: update api
This commit is contained in:
9
open-isle-cli/functions/api/api.js
Normal file
9
open-isle-cli/functions/api/api.js
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user