"use strict";(()=>{var e={};e.id=11,e.ids=[11],e.modules={145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},6249:(e,t)=>{Object.defineProperty(t,"l",{enumerable:!0,get:function(){return function e(t,r){return r in t?t[r]:"then"in t&&"function"==typeof t.then?t.then(t=>e(t,r)):"function"==typeof t&&"default"===r?t:void 0}}})},8829:(e,t,r)=>{r.r(t),r.d(t,{config:()=>d,default:()=>s,routeModule:()=>f});var n={};r.r(n),r.d(n,{default:()=>a});var i=r(1802),u=r(7153),o=r(6249);function a(e,t){if("POST"!==e.method)return t.status(405).json({error:"Method not allowed"});let{name:r,email:n,password:i}=e.body;if(!r||!n||!i)return t.status(400).json({error:"All fields are required"});let u=Buffer.from(JSON.stringify({email:n,exp:Date.now()+864e5})).toString("base64");return t.status(201).json({token:u,user:{id:Math.random().toString(36).substr(2,9),email:n,name:r}})}let s=(0,o.l)(n,"default"),d=(0,o.l)(n,"config"),f=new i.PagesAPIRouteModule({definition:{kind:u.x.PAGES_API,page:"/api/auth/signup",pathname:"/api/auth/signup",bundlePath:"",filename:""},userland:n})},7153:(e,t)=>{var r;Object.defineProperty(t,"x",{enumerable:!0,get:function(){return r}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(r||(r={}))},1802:(e,t,r)=>{e.exports=r(145)}};var t=require("../../../webpack-api-runtime.js");t.C(e);var r=t(t.s=8829);module.exports=r})();