UNPKG

rsshub

Version:
13 lines (10 loc) 297 B
import type { Handler } from 'hono'; import { getContext } from '@/utils/otel'; const handler: Handler = (ctx) => getContext() .then((val) => ctx.text(val)) .catch((error) => { ctx.status(500); ctx.json({ error }); }); export default handler;