separate routers

This commit is contained in:
tavo 2025-06-30 16:24:41 -06:00
parent ec629baa9a
commit 8ef8308570

View file

@ -3,14 +3,12 @@ package handlers
import (
"database/sql"
"html/template"
"net/http"
"git.tavo.one/tavo/axiom/storage"
)
type Handler struct {
cfg Config
mux *http.ServeMux
}
type Config struct {
@ -26,10 +24,6 @@ func New(cfg Config) *Handler {
}
}
func (h *Handler) Router() *http.ServeMux {
return h.mux
}
func (h *Handler) Production() bool {
return h.cfg.Production
}