forked from mtusi2026/mtusi2026lab2
12 lines
290 B
Go
12 lines
290 B
Go
package handler
|
|
|
|
import "net/http"
|
|
|
|
func (h *Handler) Live(w http.ResponseWriter, _ *http.Request) {
|
|
writeJSON(w, http.StatusOK, healthResponse{Status: "ok"})
|
|
}
|
|
|
|
func (h *Handler) Ready(w http.ResponseWriter, _ *http.Request) {
|
|
writeJSON(w, http.StatusOK, healthResponse{Status: "ok"})
|
|
}
|