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) ip := getClientIP(r)
writeJSON(w, http.StatusOK, rootResponse{ writeJSON(w, http.StatusOK, map[string]interface{}{
Docs: "/docs", "message": "🌱 GoHorseJobs Seeder API is running!",
Health: "/health", "version": "1.0.0",
IP: ip, "ip": ip,
Message: "🌱 GoHorseJobs Seeder API is running!", "endpoints": map[string]string{
Version: "1.0.0", "health": "/health",
"seed": "POST /seed",
"reset": "POST /reset",
},
}) })
} }