Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

1.5 KB
Raw Blame
import { Hono } from 'hono';

import agentEvalRunApp from './agent-eval-run';
import agentSignalApp from './agent-signal';
import expertiseHistoryApp from './expertise-history';
import expertiseRejectionApp from './expertise-rejection';
import goalApp from './goal';
import { inboundWebhookWorkflowApp } from './inbound-webhook';
import memoryUserMemoryApp from './memory-user-memory';
import { workflowAuth } from './middlewares/qstashAuth';
import onboardingTaskRecommendationApp from './onboarding-task-recommendation';
import onboardingUnderstandingApp from './onboarding-understanding';
import taskApp from './task';
import topicAutoSummaryApp from './topic-auto-summary';
import trashApp from './trash';
import verifyApp from './verify';
import widgetApp from './widget';

const app = new Hono().basePath('/api/workflows');

app.use('*', workflowAuth());

app.route('/agent-eval-run', agentEvalRunApp);
app.route('/agent-signal', agentSignalApp);
app.route('/expertise-history', expertiseHistoryApp);
app.route('/expertise-rejection', expertiseRejectionApp);
app.route('/goal', goalApp);
app.route('/inbound-webhook', inboundWebhookWorkflowApp);
app.route('/memory-user-memory', memoryUserMemoryApp);
app.route('/onboarding/understanding', onboardingUnderstandingApp);
app.route('/onboarding/task-recommendations', onboardingTaskRecommendationApp);
app.route('/task', taskApp);
app.route('/topic-auto-summary', topicAutoSummaryApp);
app.route('/trash', trashApp);
app.route('/verify', verifyApp);
app.route('/widget', widgetApp);

export default app;