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)
|
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",
|
||||||
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue