mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver/api: add TODO to deprecate '/config/local/log'
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
f42d9a8451
commit
807770740a
@ -47,7 +47,10 @@ const (
|
||||
// that do not access the v2 store.
|
||||
func HandleBasic(mux *http.ServeMux, server etcdserver.ServerPeer) {
|
||||
mux.HandleFunc(varsPath, serveVars)
|
||||
|
||||
// TODO: deprecate '/config/local/log' in v3.5
|
||||
mux.HandleFunc(configPath+"/local/log", logHandleFunc)
|
||||
|
||||
HandleMetricsHealth(mux, server)
|
||||
mux.HandleFunc(versionPath, versionHandler(server.Cluster(), serveVersion))
|
||||
}
|
||||
@ -80,6 +83,7 @@ func serveVersion(w http.ResponseWriter, r *http.Request, clusterV string) {
|
||||
w.Write(b)
|
||||
}
|
||||
|
||||
// TODO: deprecate '/config/local/log' in v3.5
|
||||
func logHandleFunc(w http.ResponseWriter, r *http.Request) {
|
||||
if !allowMethod(w, r, "PUT") {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user