import type { FastifyInstance } from "fastify";
import type { HealthResponse } from "@skola/shared";

export async function registerHealthRoutes(app: FastifyInstance): Promise<void> {
  app.get<{ Reply: HealthResponse }>("/health", async () => ({
    status: "ok",
    service: "skola-api",
    timestamp: new Date().toISOString()
  }));
}
