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