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)