// GET /components/guide
// Requirements: 11.1, 11.2, 11.3

import { Hono } from 'hono';
import type { Bindings } from '../types';
import { getGuide } from '../actions/getGuide';

const app = new Hono<{ Bindings: Bindings }>();

app.get('/', c => {
  const markdown = getGuide();
  return c.text(markdown, 200, { 'Content-Type': 'text/markdown; charset=utf-8' });
});

export default app;
