From f6360edef3c4fb879e8a5f789e1fc9486bc81b53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Kr=C4=8Dek?= Date: Wed, 3 Sep 2025 10:58:48 +0200 Subject: [PATCH] Attempt 55 to fix bypass --- src/lib/google/sheets/server.ts | 2 +- src/routes/private/home/+layout.server.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 src/routes/private/home/+layout.server.ts diff --git a/src/lib/google/sheets/server.ts b/src/lib/google/sheets/server.ts index 331a2c6..c40d15b 100644 --- a/src/lib/google/sheets/server.ts +++ b/src/lib/google/sheets/server.ts @@ -1,6 +1,6 @@ import { google } from 'googleapis'; import { getAuthenticatedClient } from '../auth/server.js'; -import { GoogleSheet } from './types.ts'; +import { GoogleSheet } from './types'; // Type for sheet data export interface SheetData { diff --git a/src/routes/private/home/+layout.server.ts b/src/routes/private/home/+layout.server.ts new file mode 100644 index 0000000..803cddb --- /dev/null +++ b/src/routes/private/home/+layout.server.ts @@ -0,0 +1,5 @@ +/** + * This file is necessary to ensure protection of all routes in the `private` + * directory. It makes the routes in this directory _dynamic_ routes, which + * send a server request, and thus trigger `hooks.server.ts`. + **/ \ No newline at end of file