diff options
author | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-05-14 15:07:47 -0700 |
---|---|---|
committer | Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> | 2018-05-14 15:07:47 -0700 |
commit | 5ffc6a77d8b5dbfd443828ac9bda285e44a630df (patch) | |
tree | 96db17129ef0612c0a712ff000c14603d5bacf01 /src/dkv/api/queryDatastoreHandlers.go | |
parent | 9572f152aca0945cc104576054f36950363b9dac (diff) |
Add MUSIC Cassandra Datastore placeholder
This patch adds placeholder code for MUSIC Cassandra Datastore.
Change-Id: I8c55a73e67b49e8e4cde665a9d362d3561a77266
Issue-ID: MUSIC-55
Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
Diffstat (limited to 'src/dkv/api/queryDatastoreHandlers.go')
-rw-r--r-- | src/dkv/api/queryDatastoreHandlers.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/dkv/api/queryDatastoreHandlers.go b/src/dkv/api/queryDatastoreHandlers.go index 4197ac0..ce1a706 100644 --- a/src/dkv/api/queryDatastoreHandlers.go +++ b/src/dkv/api/queryDatastoreHandlers.go @@ -36,9 +36,9 @@ type ResponseGETSStruct struct { func HandleGET(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) - key := vars["token"] + "/" + vars["key"] + key := vars["key"] - value, err := Datastore.RequestGET(key) + value, err := Datastore.RequestGET(vars["token"], key) if err != nil { req := ResponseStringStruct{Response: string(err.Error())} @@ -70,9 +70,8 @@ func HandleGETS(w http.ResponseWriter, r *http.Request) { func HandleDELETE(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) - key := vars["key"] - err := Datastore.RequestDELETE(key) + err := Datastore.RequestDELETE(vars["token"], vars["key"]) if err != nil { req := ResponseStringStruct{Response: string(err.Error())} |