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.

1007 B
Raw Blame
import { Hono } from 'hono';

import { qstashAuth } from '../middlewares/qstashAuth';
import { heartbeatTick } from './handlers/heartbeatTick';
import { onCreatorComplete } from './handlers/onCreatorComplete';
import { onTopicComplete } from './handlers/onTopicComplete';
import { scheduleDispatch } from './handlers/scheduleDispatch';
import { scheduledTopicDispatch } from './handlers/scheduledTopicDispatch';
import { scheduleExecute } from './handlers/scheduleExecute';
import { watchdog } from './handlers/watchdog';

const app = new Hono();

app.post('/on-topic-complete', qstashAuth(), onTopicComplete);
app.post('/on-creator-complete', qstashAuth(), onCreatorComplete);
app.post('/heartbeat-tick', qstashAuth(), heartbeatTick);
app.post('/schedule-dispatch', qstashAuth(), scheduleDispatch);
app.post('/schedule-execute', qstashAuth(), scheduleExecute);
app.post('/scheduled-topic-dispatch', qstashAuth(), scheduledTopicDispatch);
app.post('/watchdog', qstashAuth(), watchdog);

export default app;