package dashboard import "net/http" type Controller struct { } func New() *Controller { return &Controller{} } func (c *Controller) MountTo(mux *http.ServeMux) { mux.HandleFunc("GET /dashboard", c.Show) } func (c *Controller) Show(w http.ResponseWriter, r *http.Request) { http.Redirect(w, r, "/", http.StatusFound) }