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 ( import (
"database/sql" "database/sql"
"html/template" "html/template"
"net/http"
"git.tavo.one/tavo/axiom/storage" "git.tavo.one/tavo/axiom/storage"
) )
type Handler struct { type Handler struct {
cfg Config cfg Config
mux *http.ServeMux
} }
type Config struct { 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 { func (h *Handler) Production() bool {
return h.cfg.Production return h.cfg.Production
} }