etcd/mod/mod.go

19 lines
377 B
Go
Raw Normal View History

// mod is the entry point to all of the etcd modules.
package mod
import (
"net/http"
2013-10-17 05:59:25 +04:00
"github.com/coreos/etcd/mod/dashboard"
2013-10-17 05:59:25 +04:00
"github.com/gorilla/mux"
)
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
}