(()=>{var e={};e.id=492,e.ids=[492],e.modules={10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},24429:()=>{},26599:(e,r,t)=>{"use strict";t.r(r),t.d(r,{patchFetch:()=>l,routeModule:()=>u,serverHooks:()=>c,workAsyncStorage:()=>p,workUnitAsyncStorage:()=>d});var s={};t.r(s),t.d(s,{GET:()=>a});var o=t(30781),n=t(60554),i=t(31625);async function a(e){try{let r=await fetch("http://localhost:3001/api/profiles/me",{credentials:"include",headers:{cookie:e.headers.get("cookie")||""}});if(!r.ok)throw Error("Invalid token");let t=await r.json();return new Response(JSON.stringify({user:t}),{status:200})}catch(e){return new Response(JSON.stringify({error:"Unauthorized"}),{status:401})}}let u=new o.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/me/route",pathname:"/api/me",filename:"route",bundlePath:"app/api/me/route"},resolvedPagePath:"/home/kencert/Desktop/Work/consultingsystem/frontend/app/api/me/route.js",nextConfigOutput:"",userland:s}),{workAsyncStorage:p,workUnitAsyncStorage:d,serverHooks:c}=u;function l(){return(0,i.patchFetch)({workAsyncStorage:p,workUnitAsyncStorage:d})}},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},30781:(e,r,t)=>{"use strict";e.exports=t(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:()=>{}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[1625],()=>t(26599));module.exports=s})();