(()=>{var e={};e.id=1472,e.ids=[1472],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24429:()=>{},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30781:(e,t,r)=>{"use strict";e.exports=r(44870)},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},54619:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>d,routeModule:()=>u,serverHooks:()=>l,workAsyncStorage:()=>p,workUnitAsyncStorage:()=>c});var s={};r.r(s),r.d(s,{GET:()=>i});var o=r(30781),n=r(60554),a=r(31625);async function i(e,t){try{let t=await fetch("http://localhost:3001/api/generalconsultations/",{headers:{"Content-Type":"application/json",cookie:e.headers.get("cookie")||""},method:"GET"});if(!t.ok)throw Error("Failed to fetch consultations");let r=await t.json();return new Response(JSON.stringify(r),{status:200})}catch(e){return console.error("Error fetching consultations:",e),new Response(JSON.stringify({error:"Internal server error"}),{status:500})}}let u=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/generalconsultations/route",pathname:"/api/generalconsultations",filename:"route",bundlePath:"app/api/generalconsultations/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/generalconsultations/route.js",nextConfigOutput:"",userland:s}),{workAsyncStorage:p,workUnitAsyncStorage:c,serverHooks:l}=u;function d(){return(0,a.patchFetch)({workAsyncStorage:p,workUnitAsyncStorage:c})}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},64749:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),s=t.X(0,[1625],()=>r(54619));module.exports=s})();