feat: add swagger docs
Docker Build and Push / Build and Push Docker Image (push) Successful in 17m14s

This commit is contained in:
2026-02-22 18:36:47 +07:00
parent 140671445c
commit de821b2762
10 changed files with 3075 additions and 0 deletions
+8
View File
@@ -31,6 +31,14 @@ func internalServerError(w http.ResponseWriter, err error) {
_, _ = w.Write([]byte(err.Error()))
}
// HealthGet returns the health status of the server
//
// @Summary Health check
// @Description Returns 200 OK if the server is running
// @Tags health
// @Produce plain
// @Success 200 {string} string "OK"
// @Router /health [get]
func (h *Handler) HealthGet(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
_, _ = w.Write([]byte("OK"))