18 lines
413 B
Go
18 lines
413 B
Go
// Package web provides the web server for the application.
|
|
package web
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
// Routes sets up the routes for the server.
|
|
func (s *Server) Routes() {
|
|
s.Log.Info("Health check handler installed")
|
|
s.AddRoute("GET /health", func(w http.ResponseWriter, r *http.Request) {
|
|
s.Log.Debug("Health check handler called")
|
|
w.WriteHeader(http.StatusOK)
|
|
fmt.Fprintf(w, "Hello, World!")
|
|
})
|
|
}
|