(()=>{var e={};e.id=1816,e.ids=[1816],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")},62072:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>l,routeModule:()=>p,serverHooks:()=>c,workAsyncStorage:()=>u,workUnitAsyncStorage:()=>d});var o={};r.r(o),r.d(o,{GET:()=>a});var s=r(30781),n=r(60554),i=r(31625);async function a(e){try{let t=await fetch("http://localhost:3001/api/appointmentbooking/doctor/scheduled",{method:"GET",headers:{"Content-Type":"application/json",cookie:e.headers.get("cookie")||""}});if(!t.ok){let e=await t.json();return new Response(JSON.stringify({error:e.error||"Failed to fetch scheduled appointments"}),{status:t.status})}let r=await t.json();return new Response(JSON.stringify(r),{status:200})}catch(e){return console.error("Error fetching doctor scheduled appointments:",e),new Response(JSON.stringify({error:"Internal server error"}),{status:500})}}let p=new s.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/doctorscheduled/route",pathname:"/api/doctorscheduled",filename:"route",bundlePath:"app/api/doctorscheduled/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/doctorscheduled/route.js",nextConfigOutput:"",userland:o}),{workAsyncStorage:u,workUnitAsyncStorage:d,serverHooks:c}=p;function l(){return(0,i.patchFetch)({workAsyncStorage:u,workUnitAsyncStorage:d})}},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),o=t.X(0,[1625],()=>r(62072));module.exports=o})();