(()=>{var e={};e.id=9610,e.ids=[9610],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")},61747:(e,t,r)=>{"use strict";r.r(t),r.d(t,{patchFetch:()=>x,routeModule:()=>p,serverHooks:()=>m,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>l});var n={};r.r(n),r.d(n,{GET:()=>c});var s=r(96559),a=r(48088),o=r(37719),i=r(32190);let u=new(r(96330)).PrismaClient;async function c(e){try{let e=await u.announcement.findMany({where:{isActive:!0},orderBy:{createdAt:"desc"},take:10});return await u.$disconnect(),i.NextResponse.json({announcements:e.map(e=>({id:e.id,title:e.title,content:e.content,createdAt:e.createdAt.toISOString(),updatedAt:e.updatedAt.toISOString()}))})}catch(e){return console.error("Get announcements error:",e),await u.$disconnect(),i.NextResponse.json({error:"Server error"},{status:500})}}let p=new s.AppRouteRouteModule({definition:{kind:a.RouteKind.APP_ROUTE,page:"/api/announcements/route",pathname:"/api/announcements",filename:"route",bundlePath:"app/api/announcements/route"},resolvedPagePath:"/Users/mustafaseyhan/Project/PazarAnalist/src/app/api/announcements/route.ts",nextConfigOutput:"standalone",userland:n}),{workAsyncStorage:d,workUnitAsyncStorage:l,serverHooks:m}=p;function x(){return(0,o.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:l})}},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},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),n=t.X(0,[4447,580],()=>r(61747));module.exports=n})();