import{d as r,b as t}from"../nitro/nitro.mjs";import{a 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 e=r((async r=>{try{const e=t(r),s=e.driver,i=JSON.parse(e.config);if(!s||!i)throw new Error("Missing driver configuration");const a=o(s,i);if(!a)throw new Error("Failed to create storage driver");return{success:!0,data:await a.getItem("backup")}}catch(r){return{statusCode:500,body:{success:!1,message:r.message}}}}));export{e as default}; | |