refactor(mod): remove the /etcd/ prefix

Originally we were going to move all of the API endpoints to /etcd/ so
that you could move etcd traffic over a multiplexed HTTP proxy with
other service but since we don't have a strong use case for this just
remove this for now.
This commit is contained in:
Brandon Philips 2013-11-13 06:15:35 -08:00
parent 5abbaf59e3
commit ca7e61052d
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
## Etcd modules
etcd modules (mods) are higher order pieces of functionality that only
speak to the client etcd API and are presented in the `/etcd/mod` HTTP path
speak to the client etcd API and are presented in the `/mod` HTTP path
of the etcd service.
The basic idea is that etcd can ship things like dashboards, master

View File

@ -24,4 +24,4 @@ bower install
Run etcd like you normally would and afterward browse to:
http://localhost:4001/etcd/mod/dashboard/
http://localhost:4001/mod/dashboard/

View File

@ -123,7 +123,7 @@ func (s *Server) installV2() {
func (s *Server) installMod() {
r := s.Handler.(*mux.Router)
r.PathPrefix("/etcd/mod").Handler(http.StripPrefix("/etcd/mod", mod.HttpHandler()))
r.PathPrefix("/mod").Handler(http.StripPrefix("/mod", mod.HttpHandler()))
}
// Adds a v1 server handler to the router.