update AI engines

This commit is contained in:
James Feng Cao 2024-12-05 20:20:54 +08:00
commit f89c4903aa

View file

@ -1,10 +1,9 @@
export default {
async fetch(req, _env) {
let url = req.url;
let iSlash = url.indexOf('?',11);
let nUrl = url.substring(iSlash+1);
return await goUrl(req, nUrl);
}
export async function onRequest(context) {
const { req, env } = context;
let url = req.url;
let iSlash = url.indexOf('?',11);
let nUrl = url.substring(iSlash+1);
return await goUrl(req, nUrl);
}
async function goUrl(request, url) {