|
|
@ -1,5 +1,4 @@ |
|
|
import { NextRequest, NextResponse } from "next/server"; |
|
|
import { NextRequest, NextResponse } from "next/server"; |
|
|
import { getRequestToken } from "@/app/api/_auth"; |
|
|
|
|
|
|
|
|
|
|
|
const UPSTREAM_PRIVACY_POLICY_LATEST_PATH = "/api_client/content/privacyPolicy/latest"; |
|
|
const UPSTREAM_PRIVACY_POLICY_LATEST_PATH = "/api_client/content/privacyPolicy/latest"; |
|
|
|
|
|
|
|
|
@ -26,11 +25,6 @@ export async function GET(request: NextRequest) { |
|
|
const headers: Record<string, string> = { |
|
|
const headers: Record<string, string> = { |
|
|
Accept: "application/json", |
|
|
Accept: "application/json", |
|
|
}; |
|
|
}; |
|
|
const token = getRequestToken(request); |
|
|
|
|
|
if (token) { |
|
|
|
|
|
headers.Authorization = `Bearer ${token}`; |
|
|
|
|
|
headers.token = token; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const upstream = await fetch(upstreamUrl, { |
|
|
const upstream = await fetch(upstreamUrl, { |
|
|
method: "GET", |
|
|
method: "GET", |
|
|
|