Make the server fetch stuff from federation

This commit is contained in:
Steffo 2024-10-17 02:42:13 +02:00
parent f88c63b747
commit c3e60e3c12
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -11,12 +11,10 @@ const federation = createFederation<void>({
}); });
const handler: Deno.ServeHandler = function handler(request) { const handler: Deno.ServeHandler = function handler(request) {
const response = new Response( const response = federation.fetch(
"Garasauto", request,
{ {
headers: { contextData: undefined,
"Content-Type": "text/plain"
}
} }
) )