"use strict";(()=>{var e={};e.id=7006,e.ids=[7006],e.modules={53524:e=>{e.exports=require("@prisma/client")},20399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},30517:e=>{e.exports=require("next/dist/compiled/next-server/app-route.runtime.prod.js")},43843:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>m,patchFetch:()=>h,requestAsyncStorage:()=>c,routeModule:()=>d,serverHooks:()=>v,staticGenerationAsyncStorage:()=>l});var s={};t.r(s),t.d(s,{GET:()=>p});var a=t(49303),o=t(88716),i=t(60670),n=t(87070),u=t(72331);async function p(e){let{searchParams:r}=new URL(e.url),t=r.get("userId"),s=r.get("dramaId");if(!t||!s)return n.NextResponse.json({error:"Missing userId or dramaId"},{status:400});try{let e=await u._.favorite.findUnique({where:{userId_dramaId:{userId:t,dramaId:s}}});return n.NextResponse.json({isFavorited:!!e})}catch(e){return console.error("Error checking favorite:",e),n.NextResponse.json({error:"Internal Server Error"},{status:500})}}let d=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/user/favorites/check/route",pathname:"/api/user/favorites/check",filename:"route",bundlePath:"app/api/user/favorites/check/route"},resolvedPagePath:"C:\\Users\\MSI\\Downloads\\film\\app\\api\\user\\favorites\\check\\route.ts",nextConfigOutput:"standalone",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:l,serverHooks:v}=d,m="/api/user/favorites/check/route";function h(){return(0,i.patchFetch)({serverHooks:v,staticGenerationAsyncStorage:l})}},72331:(e,r,t)=>{t.d(r,{_:()=>a});var s=t(53524);let a=global.prisma||new s.PrismaClient}};var r=require("../../../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8948,5972],()=>t(43843));module.exports=s})();