Skip to content

Commit

Permalink
server/api: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nolouch committed Feb 17, 2017
1 parent b85b1e2 commit 8e1ac22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/api/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (h *labelsHandler) Get(w http.ResponseWriter, r *http.Request) {
h.rd.JSON(w, http.StatusOK, labels)
}

func (h *labelsHandler) GetStore(w http.ResponseWriter, r *http.Request) {
func (h *labelsHandler) GetStores(w http.ResponseWriter, r *http.Request) {
cluster := h.svr.GetRaftCluster()
if cluster == nil {
h.rd.JSON(w, http.StatusInternalServerError, errNotBootstrapped.Error())
Expand Down
2 changes: 1 addition & 1 deletion server/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func createRouter(prefix string, svr *server.Server) *mux.Router {

labelsHandler := newLabelsHandler(svr, rd)
router.HandleFunc("/api/v1/labels", labelsHandler.Get).Methods("GET")
router.HandleFunc("/api/v1/labels/stores", labelsHandler.GetStore).Methods("GET")
router.HandleFunc("/api/v1/labels/stores", labelsHandler.GetStores).Methods("GET")

router.Handle("/api/v1/events", newEventsHandler(svr, rd)).Methods("GET")
router.Handle("/api/v1/feed", newFeedHandler(svr, rd)).Methods("GET")
Expand Down

0 comments on commit 8e1ac22

Please sign in to comment.