Skip to content

Commit

Permalink
iterate over entries
Browse files Browse the repository at this point in the history
  • Loading branch information
idan committed Jul 4, 2024
1 parent 7170101 commit 407021c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/auth/+server.ts
Original file line number Diff line number Diff line change
@@ -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()]);
}

0 comments on commit 407021c

Please sign in to comment.