etcd/mod/mod.go
Brandon Philips 1d6a6d20d1 feat(mod): introduce the /etcd/mod namespace
introduce the `/etcd/mod` namespace and add the dashboard into it.
2013-10-09 13:54:44 -07:00

16 lines
345 B
Go

// mod is the entry point to all of the etcd modules.
package mod
import (
"net/http"
"github.com/coreos/etcd/mod/dashboard"
)
var ServeMux *http.Handler
func init() {
// TODO: Use a Gorilla mux to handle this in 0.2 and remove the strip
handler := http.StripPrefix("/etcd/mod/dashboard/", dashboard.HttpHandler())
ServeMux = &handler
}