blob: 060dbfacf61a91dae0cbc181fc7979676db64f79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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)
}
|