From bc081e13d165023535120a10a0c2ea6214877c66 Mon Sep 17 00:00:00 2001 From: Marco de Jongh <1107647+marcodejongh@users.noreply.github.com> Date: Sat, 14 Dec 2024 12:04:54 +1100 Subject: [PATCH] Change cron handler to GET --- app/api/internal/shared-sync/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/internal/shared-sync/route.ts b/app/api/internal/shared-sync/route.ts index b37ce5d..fcf0c48 100644 --- a/app/api/internal/shared-sync/route.ts +++ b/app/api/internal/shared-sync/route.ts @@ -7,7 +7,7 @@ export const dynamic = 'force-dynamic'; // This is a simple way to secure the endpoint, should be replaced with a better solution const CRON_SECRET = process.env.CRON_SECRET; -export async function POST(request: Request) { +export async function GET(request: Request) { try { // Basic auth check const authHeader = request.headers.get('authorization');