feat(storage): complete phase 3 branding foundation

This commit is contained in:
poyrazavsever
2026-07-16 17:05:59 +03:00
parent b155132acf
commit 5d863280bf
31 changed files with 5302 additions and 57 deletions
+15
View File
@@ -0,0 +1,15 @@
import { apiError } from "@/server/api/responses";
import { getFileService } from "@/server/files/runtime";
import { fileResponse } from "@/server/files/http";
export async function GET(
_request: Request,
{ params }: { params: Promise<{ id: string }> },
) {
try {
const file = getFileService().readPublicBranding((await params).id);
return fileResponse(file.metadata, file.bytes, "public, max-age=3600, stale-while-revalidate=86400");
} catch (error) {
return apiError(error);
}
}