"use strict";(()=>{var e={};e.id=811,e.ids=[811],e.modules={517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3292:e=>{e.exports=require("fs/promises")},1017:e=>{e.exports=require("path")},6658:(e,r,t)=>{t.r(r),t.d(r,{headerHooks:()=>m,originalPathname:()=>h,requestAsyncStorage:()=>c,routeModule:()=>l,serverHooks:()=>g,staticGenerationAsyncStorage:()=>f,staticGenerationBailout:()=>v});var o={};t.r(o),t.d(o,{GET:()=>u}),t(5655);var s=t(3323),a=t(4647),i=t(6886),n=t(3292),p=t(1017);async function u(){try{let e=(0,p.join)(process.cwd(),"public","footers"),r=await (0,n.readdir)(e),t=r.filter(e=>/\.(jpg|jpeg|png|gif|svg)$/i.test(e)),o=t.map(e=>({name:e,path:`/footers/${e}`,id:e.split(".")[0]}));return i.Z.json(o)}catch(e){return console.error("Error reading footers directory:",e),i.Z.json([],{status:200})}}let d=s.AppRouteRouteModule,l=new d({definition:{kind:a.x.APP_ROUTE,page:"/api/footers/route",pathname:"/api/footers",filename:"route",bundlePath:"app/api/footers/route"},resolvedPagePath:"C:\\Users\\HP\\Downloads\\project\\app\\api\\footers\\route.ts",nextConfigOutput:"",userland:o}),{requestAsyncStorage:c,staticGenerationAsyncStorage:f,serverHooks:g,headerHooks:m,staticGenerationBailout:v}=l,h="/api/footers/route"}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),o=r.X(0,[303],()=>t(6658));module.exports=o})();