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