feat: added swaggo support
This commit is contained in:
@@ -10,6 +10,15 @@ type healthResponse struct {
|
||||
Status string `json:"status"`
|
||||
}
|
||||
|
||||
// HealthHandler handles the health check route
|
||||
//
|
||||
// @Summary Health check
|
||||
// @Description Health check reports the status of the API
|
||||
// @Tags Health
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} healthResponse
|
||||
// @Router /health [get]
|
||||
func HealthHandler(w http.ResponseWriter, r *http.Request) {
|
||||
ctx := r.Context()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user