27 lines
383 B
Go
Raw Normal View History

2025-02-21 18:42:56 +01:00
package issue
import (
"net/http"
)
type Handler struct {
mux *http.ServeMux
}
// ServeHTTP implements http.Handler.
func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
h.mux.ServeHTTP(w, r)
}
func NewHandler() *Handler {
h := &Handler{
mux: http.NewServeMux(),
}
h.mux.HandleFunc("GET /", h.getIssuePage)
return h
}
var _ http.Handler = &Handler{}