Files
RSSHub/lib/api/namespace/all.ts
T
Tony c09dacac5b feat(api): add cache probing (#21300)
* feat(api): add cache probing

* fix(tests): correct query parameter from 'path' to 'requestPath' in status tests

* feat(cache): add has to workers kv
2026-03-05 02:36:53 +08:00

21 lines
525 B
TypeScript

import type { RouteHandler } from '@hono/zod-openapi';
import { createRoute } from '@hono/zod-openapi';
import { namespaces } from '@/registry';
const route = createRoute({
method: 'get',
path: '/namespace',
description: 'Information about all namespaces',
tags: ['Namespace'],
responses: {
200: {
description: 'Namespace registry data for all namespaces',
},
},
});
const handler: RouteHandler<typeof route> = (ctx) => ctx.json(namespaces);
export { handler, route };