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 (
|
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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue