From 18236bf9338db9317efc9d9984a3ecd0fb589b99 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Mon, 27 Oct 2025 14:10:12 +0800 Subject: [PATCH] Update index.ts --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 8dda6d6..03e7d5e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -198,8 +198,10 @@ export const app = new Elysia() }), }) - .post("/delete", async ({ body }) => { + .post("/delete", async ({ body, headers }) => { const { id } = body + checkHeaderKey(headers) + const metadata = await getMetadata() const photoIndex = metadata.findIndex((p) => p.id === id)