mod.go 345 B

123456789101112131415
  1. // mod is the entry point to all of the etcd modules.
  2. package mod
  3. import (
  4. "net/http"
  5. "github.com/coreos/etcd/mod/dashboard"
  6. )
  7. var ServeMux *http.Handler
  8. func init() {
  9. // TODO: Use a Gorilla mux to handle this in 0.2 and remove the strip
  10. handler := http.StripPrefix("/etcd/mod/dashboard/", dashboard.HttpHandler())
  11. ServeMux = &handler
  12. }