(()=>{var e={};e.id=4139,e.ids=[4139],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")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},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")},70727:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>x,routeModule:()=>d,serverHooks:()=>m,workAsyncStorage:()=>c,workUnitAsyncStorage:()=>l});var a={};r.r(a),r.d(a,{GET:()=>p});var s=r(96559),n=r(48088),o=r(37719),i=r(32190);let u=new(r(96330)).PrismaClient;async function p(e){try{let e=await u.marketData.findMany({orderBy:{symbol:"asc"}});return await u.$disconnect(),i.NextResponse.json({marketData:e.map(e=>({id:e.id,symbol:e.symbol,name:e.name,value:e.value,changePercent:e.changePercent,unit:e.unit,updatedAt:e.updatedAt.toISOString()}))})}catch(e){return console.error("Get market data error:",e),await u.$disconnect(),i.NextResponse.json({error:"Server error"},{status:500})}}let d=new s.AppRouteRouteModule({definition:{kind:n.RouteKind.APP_ROUTE,page:"/api/market-data/route",pathname:"/api/market-data",filename:"route",bundlePath:"app/api/market-data/route"},resolvedPagePath:"/Users/mustafaseyhan/Project/PazarAnalist/src/app/api/market-data/route.ts",nextConfigOutput:"standalone",userland:a}),{workAsyncStorage:c,workUnitAsyncStorage:l,serverHooks:m}=d;function x(){return(0,o.patchFetch)({workAsyncStorage:c,workUnitAsyncStorage:l})}},78335:()=>{},96330:e=>{"use strict";e.exports=require("@prisma/client")},96487:()=>{}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[4447,580],()=>r(70727));module.exports=a})();