Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[infra] Disable unused worker

Manav Rathia4e4615fd31d
diff --git a/infra/workers/data-puller/src/index.ts b/infra/workers/data-puller/src/index.ts
index 38cdad000d..8168075e1a 100644
--- a/infra/workers/data-puller/src/index.ts
+++ b/infra/workers/data-puller/src/index.ts
@@ -7,24 +7,9 @@
export default {
async fetch(request: Request) {
switch (request.method) {
- case "GET":
- return handleGET(request);
default:
console.log(`Unsupported HTTP method ${request.method}`);
return new Response(null, { status: 405 });
}
},
} satisfies ExportedHandler;
-
-const handleGET = async (request: Request) => {
- const url = new URL(request.url);
-
- // Random bots keep trying to pentest causing noise in the logs. If the
- // request doesn't have a src, we can just safely ignore it.
- const src = url.searchParams.get("src");
- if (!src) return new Response(null, { status: 400 });
-
- const source = atob(src);
-
- return fetch(source);
-};