1 line
1.8 KiB
JavaScript
1 line
1.8 KiB
JavaScript
"use strict";(()=>{var e={};e.id=105,e.ids=[105],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")},22135:(e,t,r)=>{r.r(t),r.d(t,{originalPathname:()=>x,patchFetch:()=>v,requestAsyncStorage:()=>d,routeModule:()=>u,serverHooks:()=>l,staticGenerationAsyncStorage:()=>c});var o={};r.r(o),r.d(o,{POST:()=>i});var s=r(49303),a=r(88716),n=r(60670),p=r(87070);async function i(e){try{let t;let{student_id:r,student_id_type:o,student_name:s,student_last_name:a}=await e.json(),n=process.env.USR_BOLETO,i=process.env.PASS_BOLETO,u=process.env.URL_BOLETO,d=process.env.STUDENT_DEPARTMENT,c=await fetch(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({user:n,password:i,student_id:r,student_id_type:o,student_name:s,student_last_name:a,student_department:d})}),l=c.headers.get("content-type");return t=l&&l.includes("application/json")?await c.json():await c.text(),p.NextResponse.json(t,{status:c.status,statusText:c.statusText})}catch(e){return p.NextResponse.json({error:"Error interno del servidor",details:e.message},{status:500})}}let u=new s.AppRouteRouteModule({definition:{kind:a.x.APP_ROUTE,page:"/proxy-boleto/route",pathname:"/proxy-boleto",filename:"route",bundlePath:"app/proxy-boleto/route"},resolvedPagePath:"C:\\DISCOD\\PROYECTOS\\SYSACAD_UI\\sysacad_ui\\app\\proxy-boleto\\route.ts",nextConfigOutput:"standalone",userland:o}),{requestAsyncStorage:d,staticGenerationAsyncStorage:c,serverHooks:l}=u,x="/proxy-boleto/route";function v(){return(0,n.patchFetch)({serverHooks:l,staticGenerationAsyncStorage:c})}}};var t=require("../../webpack-runtime.js");t.C(e);var r=e=>t(t.s=e),o=t.X(0,[276,972],()=>r(22135));module.exports=o})(); |