18 lines
305 B
Go
18 lines
305 B
Go
package handler
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
|
|
"mtusi2026-messenger/internal/dto"
|
|
)
|
|
|
|
func Health(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
w.WriteHeader(http.StatusOK)
|
|
|
|
_ = json.NewEncoder(w).Encode(dto.HealthResponse{
|
|
Status: "ok",
|
|
})
|
|
}
|