mirror of
https://github.com/Moe-Sakura/Wrangler-API.git
synced 2026-04-22 22:10:04 +08:00
feat: 配置Vercel部署,README更新
This commit is contained in:
@@ -54,7 +54,8 @@ export default {
|
||||
const url = new URL(request.url);
|
||||
|
||||
if (url.pathname === '/') {
|
||||
return Response.redirect('https://searchgal.homes', 302);
|
||||
const origin = url.origin;
|
||||
return Response.redirect(`https://searchgal.homes?api=${encodeURIComponent(origin)}`, 302);
|
||||
}
|
||||
|
||||
if (request.method === "OPTIONS") {
|
||||
|
||||
Reference in New Issue
Block a user