"use strict";(()=>{var e={};e.id=367,e.ids=[367],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")},73292:e=>{e.exports=require("fs/promises")},71017:e=>{e.exports=require("path")},34151:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>v,patchFetch:()=>f,requestAsyncStorage:()=>x,routeModule:()=>g,serverHooks:()=>h,staticGenerationAsyncStorage:()=>m});var a={};r.r(a),r.d(a,{POST:()=>c});var s=r(49303),o=r(88716),n=r(60670),u=r(87070),i=r(73292),p=r.n(i),d=r(71017),l=r.n(d);async function c(e){try{let t=await e.json();if("object"!=typeof t||null===t)return u.NextResponse.json({error:"Invalid usage format"},{status:400});let r=l().join(process.cwd(),"external_usage.json");return await p().writeFile(r,JSON.stringify(t,null,2)),u.NextResponse.json({message:"updated"})}catch(e){return u.NextResponse.json({error:"Failed"},{status:500})}}let g=new s.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/update_usage/route",pathname:"/api/update_usage",filename:"route",bundlePath:"app/api/update_usage/route"},resolvedPagePath:"C:\\Users\\Design Collection\\OneDrive\\Desktop\\Jitendra Vishwakarma\\Next Dashboard\\web crawler for user dev\\Scrape Genius\\app\\api\\update_usage\\route.js",nextConfigOutput:"",userland:a}),{requestAsyncStorage:x,staticGenerationAsyncStorage:m,serverHooks:h}=g,v="/api/update_usage/route";function f(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:m})}}};var t=require("../../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),a=t.X(0,[8948,5972],()=>r(34151));module.exports=a})();