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 9fd789f commit 5639ffa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/app/api/imagens/anroll/route.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fetch from "node-fetch";
import { HttpsProxyAgent } from "https-proxy-agent";

export async function GET(request) {
const query = request.nextUrl.searchParams.get("q");
Expand All @@ -11,11 +10,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,
headers: {
"Authority": new URL(url).host,
"Host": "anroll.net",
Expand Down

0 comments on commit 5639ffa

Please sign in to comment.