"use strict";(()=>{var e={};e.id=280,e.ids=[280],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")},33611:(e,r,t)=>{t.r(r),t.d(r,{originalPathname:()=>l,patchFetch:()=>x,requestAsyncStorage:()=>c,routeModule:()=>u,serverHooks:()=>h,staticGenerationAsyncStorage:()=>d});var s={};t.r(s),t.d(s,{GET:()=>i});var a=t(49303),o=t(88716),n=t(60670),p=t(87070);async function i(e){let{query:r}=e.body,t=await fetch(`${process.env.API_URL}search/product?title=${r}`),s=await t.json();return s.success?p.NextResponse.json(s):p.NextResponse.json({err:err.mesage})}let u=new a.AppRouteRouteModule({definition:{kind:o.x.APP_ROUTE,page:"/api/search/route",pathname:"/api/search",filename:"route",bundlePath:"app/api/search/route"},resolvedPagePath:"C:\\Users\\AWA NDUBUISI\\Documents\\Next\\shop-app\\app\\api\\search\\route.js",nextConfigOutput:"",userland:s}),{requestAsyncStorage:c,staticGenerationAsyncStorage:d,serverHooks:h}=u,l="/api/search/route";function x(){return(0,n.patchFetch)({serverHooks:h,staticGenerationAsyncStorage:d})}},49303:(e,r,t)=>{e.exports=t(30517)}};var r=require("../../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),s=r.X(0,[948,70],()=>t(33611));module.exports=s})();