feat: add books APIs

This commit is contained in:
gosangam
2026-05-09 23:19:19 +05:30
commit b055b8ba0c
43 changed files with 4307 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
package handler
import (
"net/http"
"github.com/prabhupadasays/spsays-bff/pkg/response"
)
// Health handles the health check endpoint.
type Health struct{}
// NewHealth creates a new Health handler.
func NewHealth() *Health {
return &Health{}
}
// Check returns the server health status.
func (h *Health) Check(w http.ResponseWriter, r *http.Request) {
response.JSON(w, http.StatusOK, map[string]string{
"status": "ok",
})
}