Files
songs2vid/app/api/branding/watermark/route.ts
T
Atakan Doğan ÖzbanandCursor c8015937f9 Align preview typography with FFmpeg output, add video/song title split, and ship OSS updates.
Separate YouTube video titles from on-video song/artist fields with Pro gating, serve curated fonts and watermark assets for 1:1 preview parity, and include billing/API/docs/deploy stack for self-hosted release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 16:26:19 +02:00

18 lines
490 B
TypeScript

import fs from "fs/promises";
import { NextResponse } from "next/server";
import { getWatermarkPath } from "@/lib/storage";
export async function GET() {
try {
const buf = await fs.readFile(getWatermarkPath());
return new NextResponse(buf, {
headers: {
"Content-Type": "image/png",
"Cache-Control": "public, max-age=86400, immutable",
},
});
} catch {
return NextResponse.json({ error: "Watermark asset not found" }, { status: 404 });
}
}