import { NextRequest, NextResponse } from "next/server";

export async function GET(request: NextRequest) {

  const token = request.headers.get("authorization");

  const response = await fetch(
    "https://api.astrology.togwe.com/api/user/profile",
    {
      method: "GET",
      headers: {
        Authorization: token || "",
      },
      cache: "no-store",
    }
  );

  const data = await response.json();

  return NextResponse.json(data);
}