summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-29 09:40:12 -0700
committerShashank Kumar Shankar <shashank.kumar.shankar@intel.com>2018-03-29 09:40:12 -0700
commit9572f152aca0945cc104576054f36950363b9dac (patch)
treee91d91cbfc7afd442d7a32086cf58e45628d8d66
parent9434f17d531a418a4314436e315c074fc8573135 (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.go2
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")