Skip to content

Commit

Permalink
Removed /config/init route
Browse files Browse the repository at this point in the history
Removed /config/init -- it wasn't doing anything useful.
  • Loading branch information
danesparza committed Oct 12, 2016
1 parent 2b7bf94 commit 906de6e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
6 changes: 0 additions & 6 deletions api/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package api
import (
"bytes"
"encoding/json"
"fmt"
"net/http"

"github.com/cagedtornado/centralconfig/datastores"
Expand Down Expand Up @@ -183,11 +182,6 @@ func GetAllApplications(rw http.ResponseWriter, req *http.Request) {
sendDataResponse(rw, "No config items found", applications)
}

// Initializes a store
func InitStore(rw http.ResponseWriter, req *http.Request) {
fmt.Fprintln(rw, "InitStore method")
}

// Used to send back an error:
func sendErrorResponse(rw http.ResponseWriter, err error, code int) {
// Our return value
Expand Down
1 change: 0 additions & 1 deletion cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ func serve(cmd *cobra.Command, args []string) {
Router.HandleFunc("/config/remove", api.RemoveConfig)
Router.HandleFunc("/config/getall", api.GetAllConfig)
Router.HandleFunc("/config/getallforapp", api.GetAllConfigForApp)
Router.HandleFunc("/config/init", api.InitStore)
Router.HandleFunc("/applications/getall", api.GetAllApplications)

// Websocket connections
Expand Down

0 comments on commit 906de6e

Please sign in to comment.