(()=>{var e={};e.id=360,e.ids=[360],e.modules={96330:e=>{"use strict";e.exports=require("@prisma/client")},10846:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},44870:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},3295:e=>{"use strict";e.exports=require("next/dist/server/app-render/after-task-async-storage.external.js")},29294:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-async-storage.external.js")},63033:e=>{"use strict";e.exports=require("next/dist/server/app-render/work-unit-async-storage.external.js")},39726:(e,r,t)=>{"use strict";t.r(r),t.d(r,{patchFetch:()=>g,routeModule:()=>c,serverHooks:()=>l,workAsyncStorage:()=>d,workUnitAsyncStorage:()=>m});var s={};t.r(s),t.d(s,{GET:()=>u});var a=t(42706),o=t(28203),i=t(45994),p=t(39187),n=t(11587);async function u(){try{let e=(await n.A.emprego.findMany({orderBy:{createdAt:"desc"},include:{ramo:!0,regiao:!0}})).map(e=>({id:e.id,titulo:e.titulo,tipoVaga:e.tipoVaga,experiencia:e.experiencia,localizacao:e.localizacao,imagem:e.imagem,ramo:e.ramo.nome,regiao:e.regiao.nome,createdAt:e.createdAt,updatedAt:e.updatedAt}));return p.NextResponse.json(e,{status:200})}catch(e){return console.error("Erro ao buscar empregos:",e),p.NextResponse.json({error:"Erro ao buscar empregos."},{status:500})}}let c=new a.AppRouteRouteModule({definition:{kind:o.RouteKind.APP_ROUTE,page:"/api/empregos/route",pathname:"/api/empregos",filename:"route",bundlePath:"app/api/empregos/route"},resolvedPagePath:"C:\\Users\\guilh\\Desktop\\plataforma-empregos-NextJs-Ts\\app\\api\\empregos\\route.ts",nextConfigOutput:"",userland:s}),{workAsyncStorage:d,workUnitAsyncStorage:m,serverHooks:l}=c;function g(){return(0,i.patchFetch)({workAsyncStorage:d,workUnitAsyncStorage:m})}},96487:()=>{},78335:()=>{},11587:(e,r,t)=>{"use strict";t.d(r,{A:()=>s});let s=new(t(96330)).PrismaClient}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[638,452],()=>t(39726));module.exports=s})();