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