import{processBody as i}from"./process-body.js";async function m(e){const t=e.req.param(),n=e.req.routePath,a=Object.fromEntries(Object.entries(t).map(([r,s])=>{if(s&&(n.includes(`/:${r}{.*}`)||n.includes(`/:${r}{.+}`))){const o=s.split("/").filter(Boolean);return[r,o.length?o:void 0]}return[r,s]}));return{raw:e.req.raw,headers:Object.fromEntries(e.req.raw.headers.entries()),params:a,query:e.req.query()||{},cookies:e.get("cookies"),body:await i(e)}}export{m as enhanceRequest};
