going prod step-by-step

This commit is contained in:
2025-10-15 14:11:23 +03:00
parent 529dd0460d
commit b60de5f97c
5 changed files with 477 additions and 2 deletions

View File

@@ -202,6 +202,14 @@ func (s *Server) handleStatus(w http.ResponseWriter, r *http.Request) {
})
}
func (s *Server) handleHello(w http.ResponseWriter, r *http.Request) {
writeJSON(w, http.StatusOK, map[string]string{
"message": "Close the world, .txen eht nepO",
"author": "Yigid BALABAN <hey@yigid.dev>",
"authorHomepage": "https://yigid.dev/",
})
}
func writeJSON(w http.ResponseWriter, status int, data interface{}) {
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(status)