"use strict";(()=>{var e={};e.id=69,e.ids=[69],e.modules={20145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},56249:(e,r)=>{Object.defineProperty(r,"l",{enumerable:!0,get:function(){return function e(r,t){return t in r?r[t]:"then"in r&&"function"==typeof r.then?r.then(r=>e(r,t)):"function"==typeof r&&"default"===t?r:void 0}}})},36318:(e,r,t)=>{t.r(r),t.d(r,{config:()=>f,default:()=>d,routeModule:()=>l});var o={};t.r(o),t.d(o,{default:()=>u});var n=t(71802),i=t(47153),a=t(56249);async function u(e,r){if(!e.headers["x-echo-url"])return r.status(404).send("No URL provided");let t=await fetch(`${e.headers["x-echo-url"]}?action=discover`),o=(await t.json()).workflows.find(r=>r.workflowId===e.query.workflowId);r.json(o)}let d=(0,a.l)(o,"default"),f=(0,a.l)(o,"config"),l=new n.PagesAPIRouteModule({definition:{kind:i.x.PAGES_API,page:"/api/workflows/[workflowId]",pathname:"/api/workflows/[workflowId]",bundlePath:"",filename:""},userland:o})},47153:(e,r)=>{var t;Object.defineProperty(r,"x",{enumerable:!0,get:function(){return t}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE"}(t||(t={}))},71802:(e,r,t)=>{e.exports=t(20145)}};var r=require("../../../webpack-api-runtime.js");r.C(e);var t=r(r.s=36318);module.exports=t})();