import { Router } from "express";
import { loadGuideContent } from "../lib/knowledge";

export const guideRouter = Router();

guideRouter.get("/", async (_req, res) => {
  try {
    const content = await loadGuideContent();
    res.json({ content });
  } catch (error) {
    console.error("Error loading guide content:", error);
    res.status(500).json({ error: "Failed to load guide content" });
  }
});
