diff --git a/src/index.ts b/src/index.ts index 6147d7f..88badbd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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()