Files
greenlight/cmd/api/healthcheck.go
lbenedar 10748c612b ch2
2026-03-10 14:31:03 +03:00

13 lines
265 B
Go

package main
import (
"fmt"
"net/http"
)
func (app *application) healthcheckHandler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "status: available")
fmt.Fprintf(w, "environment: %s\n", app.config.env)
fmt.Fprintf(w, "version: %s\n", version)
}