From 407021ced8b2355c24efe6d77a10d3b0dc7ffcc1 Mon Sep 17 00:00:00 2001 From: Idan Gazit Date: Thu, 4 Jul 2024 16:20:03 +0300 Subject: [PATCH] iterate over entries --- src/routes/auth/+server.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/auth/+server.ts b/src/routes/auth/+server.ts index fa1c9ac..e092d62 100644 --- a/src/routes/auth/+server.ts +++ b/src/routes/auth/+server.ts @@ -1,6 +1,7 @@ import { json } from '@sveltejs/kit'; import type { RequestHandler } from './$types'; -export const POST: RequestHandler = async ({request, platform}) => { - return json({request, platform}); +export const POST: RequestHandler = async (e) => { + console.log([...e.request.headers.entries()]) + return json([...e.request.headers.entries()]); } \ No newline at end of file