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:
@@ -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[] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user