From 9fd789f2ffd430783ed0dcbddc582dd499446b78 Mon Sep 17 00:00:00 2001 From: Ueslei Paim Date: Sun, 1 Sep 2024 22:44:19 -0300 Subject: [PATCH] Update route.js --- src/app/api/imagens/anroll/route.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/app/api/imagens/anroll/route.js b/src/app/api/imagens/anroll/route.js index f90cbc1..26d6c4d 100644 --- a/src/app/api/imagens/anroll/route.js +++ b/src/app/api/imagens/anroll/route.js @@ -1,9 +1,6 @@ import fetch from "node-fetch"; import { HttpsProxyAgent } from "https-proxy-agent"; -const proxy = "http://118.68.249.51:1005"; -const agent = new HttpsProxyAgent(proxy); - export async function GET(request) { const query = request.nextUrl.searchParams.get("q"); @@ -14,6 +11,8 @@ export async function GET(request) { ); try { + const proxy = "http://27.70.197.16:8080"; + const agent = new HttpsProxyAgent(proxy); const url = decodeURIComponent(query); const res = await fetch(url, { agent,