(()=>{var e={};e.id=3909,e.ids=[3909],e.modules={3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},19442:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>h,routeModule:()=>p,serverHooks:()=>d,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>l});var s={};r.r(s),r.d(s,{GET:()=>u});var o=r(30781),n=r(60554),a=r(31625),i=r(80129);let u=async(e,t)=>{let r=await (0,i.UL)();if(!r.get("token")?.value)return new Response(JSON.stringify({error:"Unauthorized"}),{status:401});let{consultationId:s}=await params;try{let t=await fetch(`http://localhost:3001/api/consultation/${s}`,{method:"GET",headers:{"Content-Type":"application/json",cookie:e.headers.get("cookie")||""}});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})}},p=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/consultations/[consultaionId]/route",pathname:"/api/consultations/[consultaionId]",filename:"route",bundlePath:"app/api/consultations/[consultaionId]/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/consultations/[consultaionId]/route.js",nextConfigOutput:"",userland:s}),{workAsyncStorage:c,workUnitAsyncStorage:l,serverHooks:d}=p;function h(){return(0,a.patchFetch)({workAsyncStorage:c,workUnitAsyncStorage:l})}},24429:()=>{},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},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,3197],()=>r(19442));module.exports=s})();