Update index.ts

This commit is contained in:
2025-10-27 14:19:35 +08:00
parent c85d2873d5
commit aa1634efb0
+2
View File
@@ -6,6 +6,7 @@ import sharp from "sharp"
import { unlink } from "fs/promises"
import path from "path"
import { readdir } from "fs/promises"
import { log } from "console"
// --- Configuration ---
const FOLDER_BASE = "./data"
@@ -206,6 +207,7 @@ export const app = new Elysia()
.post("/delete", async ({ body, headers }) => {
const { id } = body
checkHeaderKey(headers)
log(`[+] Received delete request for photo ${id}`)
const metadata = await getMetadata()