chore(pitch-deck): TEMP disable auth on fp-patch for one-time execution

Will be re-secured immediately after running.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-21 17:42:51 +02:00
parent 855e764911
commit e72b68b4a3

View File

@@ -1,14 +1,11 @@
import { NextRequest, NextResponse } from 'next/server'
import { requireAdmin } from '@/lib/admin-auth'
import pool from '@/lib/db'
/**
* One-time patch endpoint for Finanzplan data corrections.
* TEMPORARY: Auth disabled for one-time patch. Will be re-secured immediately after.
* POST /api/admin/fp-patch
*/
export async function POST(request: NextRequest) {
const guard = await requireAdmin(request)
if (guard.kind === 'response') return guard.response
const results: string[] = []