/**
 * Catch-all proxy for /auth/* sub-paths that don't have an explicit route.ts.
 *
 * Covers the multi-provider auth surface:
 *   /auth/mfa/setup, /auth/mfa/activate, /auth/mfa/disable, /auth/mfa/verify
 *   /auth/providers
 *   /auth/oidc/login, /auth/oidc/callback
 *   /auth/saml/login, /auth/saml/acs, /auth/saml/metadata
 *
 * Without this, Next.js treats them as page routes and returns 404 HTML.
 *
 * Explicit per-endpoint routes (login, logout, me, register, users/...)
 * still take precedence because Next.js prefers more specific segments
 * over a catch-all.
 */
import { NextRequest } from 'next/server';
import { proxyRequest } from '@/lib/proxy';

export async function GET(request: NextRequest) {
    return proxyRequest(request);
}

export async function POST(request: NextRequest) {
    return proxyRequest(request);
}

export async function PUT(request: NextRequest) {
    return proxyRequest(request);
}

export async function PATCH(request: NextRequest) {
    return proxyRequest(request);
}

export async function DELETE(request: NextRequest) {
    return proxyRequest(request);
}
