API Updates
Deploy / deploy (push) Successful in 2m37s

This commit is contained in:
twotalesanimation
2026-07-08 16:28:18 +02:00
parent 4f7e2a4adc
commit b27aa1788f
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -2,8 +2,8 @@ import { NextResponse } from "next/server";
import { db } from "@/lib/db";
function isAuthorized(req: Request): boolean {
const key = process.env.DISPLAY_API_KEY;
if (!key) return false; // key must be set
const key = process.env.API_SECRET_KEY;
if (!key) return false;
return req.headers.get("x-display-key") === key;
}