separate routers
This commit is contained in:
parent
ec629baa9a
commit
8ef8308570
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue