import type { FastifyInstance } from "fastify";
import { loadSkillDefinitions, toPublicSkill } from "./config.js";

export const registerSkillRoutes = async (app: FastifyInstance) => {
  app.get("/api/skills", async () => {
    const items = loadSkillDefinitions().map(toPublicSkill);
    return { items };
  });
};
