17 lines
288 B
TypeScript
17 lines
288 B
TypeScript
import { Hono, Context } from 'hono';
|
|
|
|
const channelRoutes = new Hono();
|
|
|
|
channelRoutes.get('/:channelSlug', async (c: Context) => {
|
|
|
|
return c.json([
|
|
{
|
|
channel: {
|
|
name: 'Something'
|
|
}
|
|
}
|
|
]);
|
|
});
|
|
|
|
export default channelRoutes;
|