import { NextResponse, NextRequest } from "next/server" import { getVideo } from "@/app/api/actions/ai-tube-hf/getVideo" import { parseMediaProjectionType } from "@/lib/utils/parseMediaProjectionType"; /** * @deprecated */ export async function GET(req: NextRequest) { const videoId = req.url.split("/").pop() || "" const video = await getVideo({ videoId, neverThrow: true }) if (!video) { return new NextResponse("video not found", { status: 404 }); } const isEquirectangular = parseMediaProjectionType(video) === "equirectangular" const html = `