Files
RSSHub/lib/api/follow/config.ts
T
2024-12-18 23:16:28 +08:00

23 lines
529 B
TypeScript

import { config } from '@/config';
import { createRoute, RouteHandler } from '@hono/zod-openapi';
const route = createRoute({
method: 'get',
path: '/follow/config',
tags: ['Follow'],
responses: {
200: {
description: 'Follow config',
},
},
});
const handler: RouteHandler<typeof route> = (ctx) =>
ctx.json({
ownerUserId: config.follow.ownerUserId,
description: config.follow.description,
price: config.follow.price,
});
export { route, handler };