diff --git a/api/routes.go b/api/routes.go index 9e81488..8ac4fbc 100644 --- a/api/routes.go +++ b/api/routes.go @@ -3,7 +3,6 @@ package api import ( "bytes" "encoding/json" - "fmt" "net/http" "github.com/cagedtornado/centralconfig/datastores" @@ -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 diff --git a/cmd/serve.go b/cmd/serve.go index 7c747b1..d690c70 100644 --- a/cmd/serve.go +++ b/cmd/serve.go @@ -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