2013-10-10 00:54:44 +04:00
|
|
|
// mod is the entry point to all of the etcd modules.
|
|
|
|
package mod
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
2013-10-17 05:59:25 +04:00
|
|
|
|
2013-10-10 00:54:44 +04:00
|
|
|
"github.com/coreos/etcd/mod/dashboard"
|
2013-10-17 05:59:25 +04:00
|
|
|
"github.com/gorilla/mux"
|
2013-10-10 00:54:44 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
var ServeMux *http.Handler
|
|
|
|
|
2013-10-17 05:59:25 +04:00
|
|
|
func HttpHandler() (handler http.Handler) {
|
|
|
|
modMux := mux.NewRouter()
|
|
|
|
modMux.PathPrefix("/dashboard/").
|
|
|
|
Handler(http.StripPrefix("/dashboard/", dashboard.HttpHandler()))
|
|
|
|
return modMux
|
2013-10-10 00:54:44 +04:00
|
|
|
}
|