diff options
author | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-03-29 09:40:12 -0700 |
---|---|---|
committer | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-03-29 09:40:12 -0700 |
commit | 9572f152aca0945cc104576054f36950363b9dac (patch) | |
tree | e91d91cbfc7afd442d7a32086cf58e45628d8d66 | |
parent | 9434f17d531a418a4314436e315c074fc8573135 (diff) |
Add TODO comments for removing global endpoints
Change-Id: I1d4b1c15a0bf027d4ebeae4298a46a495405b15f
Issue-ID: MUSIC-55
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
-rw-r--r-- | src/dkv/main.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dkv/main.go b/src/dkv/main.go index 5bf076f..ba8f9e9 100644 --- a/src/dkv/main.go +++ b/src/dkv/main.go @@ -51,6 +51,8 @@ func main() { router.HandleFunc("/v1/config/load-default", api.HandleDefaultConfigLoad).Methods("GET") // Direct Consul queries. router.HandleFunc("/v1/getconfig/{token}/{key}", api.HandleGET).Methods("GET") + // TODO(sshank): Following methods should not be allowed for all users. Remove it or make sure + // its accessible only by admin. router.HandleFunc("/v1/deleteconfig/{key}", api.HandleDELETE).Methods("DELETE") router.HandleFunc("/v1/getconfigs", api.HandleGETS).Methods("GET") |