Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
package healthcheck
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"codeberg.org/mapleopentech/monorepo/cloud/maplepress-backend/pkg/httpresponse"
|
||||
)
|
||||
|
||||
// Handler handles healthcheck requests
|
||||
type Handler struct{}
|
||||
|
||||
// ProvideHealthCheckHandler creates a new health check handler
|
||||
func ProvideHealthCheckHandler() *Handler {
|
||||
return &Handler{}
|
||||
}
|
||||
|
||||
// Handle handles the healthcheck request
|
||||
func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) {
|
||||
response := map[string]string{
|
||||
"status": "healthy",
|
||||
}
|
||||
|
||||
httpresponse.OK(w, response)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue