29 lines
640 B
TypeScript
29 lines
640 B
TypeScript
import type { Context } from 'hono';
|
|
|
|
import type { Route } from '@/types';
|
|
|
|
import { fetchFeed } from './utils';
|
|
|
|
export const handler = (ctx: Context) => {
|
|
const limit = Number.parseInt(ctx.req.query('limit') || '10');
|
|
|
|
return fetchFeed(limit);
|
|
};
|
|
|
|
export const route: Route = {
|
|
path: '/blog',
|
|
categories: ['programming'],
|
|
example: '/tailwindcss/blog',
|
|
features: {
|
|
requireConfig: false,
|
|
requirePuppeteer: false,
|
|
antiCrawler: false,
|
|
supportBT: false,
|
|
supportPodcast: false,
|
|
supportScihub: false,
|
|
},
|
|
name: 'Blog',
|
|
maintainers: ['goestav'],
|
|
handler,
|
|
};
|