mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:07:32 +00:00
cleanup api route
This commit is contained in:
@@ -1,17 +0,0 @@
|
|||||||
import { NextRequest, NextResponse } from "next/server";
|
|
||||||
|
|
||||||
export const dynamic = "force-dynamic";
|
|
||||||
export const revalidate = false;
|
|
||||||
export const fetchCache = "default-no-store";
|
|
||||||
|
|
||||||
export async function GET(request: NextRequest) {
|
|
||||||
const headers = request.headers;
|
|
||||||
|
|
||||||
// Convert headers to a plain object
|
|
||||||
const headersObject: Record<string, string> = {};
|
|
||||||
headers.forEach((value, key) => {
|
|
||||||
headersObject[key] = value;
|
|
||||||
});
|
|
||||||
|
|
||||||
return NextResponse.json(headersObject);
|
|
||||||
}
|
|
Reference in New Issue
Block a user