"use strict";(()=>{var e={};e.id=5531,e.ids=[5531],e.modules={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")},57147:e=>{e.exports=require("fs")},71017:e=>{e.exports=require("path")},47301:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>k,patchFetch:()=>f,requestAsyncStorage:()=>g,routeModule:()=>y,serverHooks:()=>x,staticGenerationAsyncStorage:()=>m});var s={};t.r(s),t.d(s,{POST:()=>l});var n=t(49303),a=t(88716),o=t(60670),i=t(87070),u=t(57147),p=t.n(u),c=t(71017),d=t.n(c);async function l(){try{let e=d().join(process.cwd(),"keys.json"),r=p().readFileSync(e,"utf-8"),t=JSON.parse(r);for(let e of t)if(!e.my_key||!e.my_engine)return i.NextResponse.json({success:!1,error:"Missing keys"},{status:400});let s=t.filter(e=>e.my_key&&e.my_engine);return i.NextResponse.json({success:!0,data:s})}catch(e){return i.NextResponse.json({success:!1,error:e.message},{status:500})}}let y=new n.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/api/get_keys/route",pathname:"/api/get_keys",filename:"route",bundlePath:"app/api/get_keys/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\get_keys\\route.js",nextConfigOutput:"",userland:s}),{requestAsyncStorage:g,staticGenerationAsyncStorage:m,serverHooks:x}=y,k="/api/get_keys/route";function f(){return(0,o.patchFetch)({serverHooks:x,staticGenerationAsyncStorage:m})}}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[8948,5972],()=>t(47301));module.exports=s})();