fix(seeder): update root response with actual endpoints (no /docs)

This commit is contained in:
Yamamoto 2026-01-02 20:23:34 -03:00
parent ea79835415
commit 1f9aacf81b

View file

@ -90,12 +90,15 @@ func (s *server) rootHandler(w http.ResponseWriter, r *http.Request) {
}
ip := getClientIP(r)
writeJSON(w, http.StatusOK, rootResponse{
Docs: "/docs",
Health: "/health",
IP: ip,
Message: "🌱 GoHorseJobs Seeder API is running!",
Version: "1.0.0",
writeJSON(w, http.StatusOK, map[string]interface{}{
"message": "🌱 GoHorseJobs Seeder API is running!",
"version": "1.0.0",
"ip": ip,
"endpoints": map[string]string{
"health": "/health",
"seed": "POST /seed",
"reset": "POST /reset",
},
})
}