Browse Source

Merge pull request #300 from philips/remove-etcd-from-mod

refactor(mod): remove the /etcd/ prefix
Brandon Philips 12 years ago
parent
commit
5057036563
3 changed files with 3 additions and 3 deletions
  1. 1 1
      mod/README.md
  2. 1 1
      mod/dashboard/README.md
  3. 1 1
      server/server.go

+ 1 - 1
mod/README.md

@@ -1,7 +1,7 @@
 ## Etcd modules
 ## Etcd modules
 
 
 etcd modules (mods) are higher order pieces of functionality that only
 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.
 of the etcd service.
 
 
 The basic idea is that etcd can ship things like dashboards, master
 The basic idea is that etcd can ship things like dashboards, master

+ 1 - 1
mod/dashboard/README.md

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

+ 1 - 1
server/server.go

@@ -123,7 +123,7 @@ func (s *Server) installV2() {
 
 
 func (s *Server) installMod() {
 func (s *Server) installMod() {
 	r := s.Handler.(*mux.Router)
 	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.
 // Adds a v1 server handler to the router.