Skip to content
This repository has been archived by the owner on Jan 4, 2025. It is now read-only.

Commit

Permalink
Update route.js
Browse files Browse the repository at this point in the history
  • Loading branch information
uesleibros authored Sep 2, 2024
1 parent dbaa174 commit 9fd789f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/api/imagens/anroll/route.js
Original file line number Diff line number Diff line change
@@ -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");

Expand All @@ -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,
Expand Down

0 comments on commit 9fd789f

Please sign in to comment.