12 lines
264 B
Go
12 lines
264 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)
|
|
} |