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