feat: routes api
This commit is contained in:
parent
901075eda9
commit
63639a44d1
|
|
@ -1,7 +1,9 @@
|
|||
import { Hono } from 'hono';
|
||||
import rules from '@/api/radar/rules';
|
||||
import routes from '@/api/routes';
|
||||
|
||||
const app = new Hono();
|
||||
app.get('/radar/rules.json', rules);
|
||||
app.get('/radar/rules', rules);
|
||||
app.get('/routes', routes);
|
||||
|
||||
export default app;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
import type { Handler } from 'hono';
|
||||
import { namespaces } from '@/registry';
|
||||
|
||||
const handler: Handler = (ctx) => ctx.json(namespaces);
|
||||
|
||||
export default handler;
|
||||
Loading…
Reference in New Issue