From c3e60e3c1241887fd2210daf2327c7a766febae5 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 17 Oct 2024 02:42:13 +0200 Subject: [PATCH] Make the server fetch stuff from federation --- src/main.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index aa367f1..b6c6041 100644 --- a/src/main.ts +++ b/src/main.ts @@ -11,12 +11,10 @@ const federation = createFederation({ }); const handler: Deno.ServeHandler = function handler(request) { - const response = new Response( - "Garasauto", + const response = federation.fetch( + request, { - headers: { - "Content-Type": "text/plain" - } + contextData: undefined, } )