"use strict";(()=>{var e={};e.id=991,e.ids=[991],e.modules={20145:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},56249:(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}}})},98723:(e,t,r)=>{r.r(t),r.d(t,{config:()=>s,default:()=>d,routeModule:()=>f});var n={};r.r(n),r.d(n,{default:()=>u});var o=r(71802),i=r(47153),a=r(56249);async function u(e,t){if(!e.headers["x-echo-url"])return t.status(404).send("No URL provided");let r=await fetch(`${e.headers["x-echo-url"]}?action=discover`,{headers:{}}),n=await r.json();t.json(n.workflows)}let d=(0,a.l)(n,"default"),s=(0,a.l)(n,"config"),f=new o.PagesAPIRouteModule({definition:{kind:i.x.PAGES_API,page:"/api/workflows",pathname:"/api/workflows",bundlePath:"",filename:""},userland:n})},47153:(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={}))},71802:(e,t,r)=>{e.exports=r(20145)}};var t=require("../../webpack-api-runtime.js");t.C(e);var r=t(t.s=98723);module.exports=r})();