import{d as e,b as t}from"../../nitro/nitro.mjs";import{g as o}from"../../_/storage.mjs";import"node:http";import"node:https";import"node:events";import"node:buffer";import"node:fs";import"node:path";import"node:crypto";import"node:url";const r=e((async e=>{try{const r=t(e).key,s=await o().getCache(r);return s?(await o().deleteCache(r),console.log(`Code cleared: ${s}`),{status:"ok",message:"Code cleared successfully",timestamp:(new Date).toISOString()}):(console.warn("Attempt to clear code when none exists"),{status:"ok",message:"No code to clear",timestamp:(new Date).toISOString()})}catch(e){return console.error("Error in clearCodeHandler:",e),{status:"error",message:"Internal server error",timestamp:(new Date).toISOString()}}}));export{r as default}; | |