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