mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
16 lines
345 B
Go
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
|
|
}
|