Initial OSS scaffold from Songs2VID (pre-strip)

This commit is contained in:
Songs2VID OSS
2026-08-03 06:15:05 +02:00
commit 7d7043b150
195 changed files with 25023 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
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 });
}
}