Skip to content

Commit

Permalink
Change cron handler to GET
Browse files Browse the repository at this point in the history
  • Loading branch information
marcodejongh committed Dec 14, 2024
1 parent 5c60a3c commit bc081e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/internal/shared-sync/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

1 comment on commit bc081e1

@vercel
Copy link

@vercel vercel bot commented on bc081e1 Dec 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.