fix(seeder): update root response with actual endpoints (no /docs)
This commit is contained in:
parent
ea79835415
commit
1f9aacf81b
1 changed files with 9 additions and 6 deletions
|
|
@ -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",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue