removed unused api handlers and protobuf processing logic

This commit is contained in:
aishwarya-raimule
2023-01-23 16:24:36 +05:30
parent 9ecc13f2d3
commit 5f5f7b7953
2 changed files with 0 additions and 6 deletions

View File

@@ -66,8 +66,3 @@ func healthHandler(w http.ResponseWriter, r *http.Request) {
return
}
}
func healthToggleHandler(w http.ResponseWriter, r *http.Request) {
healthyBool = !healthyBool
io.WriteString(w, "toggled")
}

View File

@@ -35,7 +35,6 @@ func NewServer(port string, corsList string) (*Server, error) {
router := mux.NewRouter()
router.HandleFunc("/events/json", eventsHandlerJson).Methods("POST")
router.HandleFunc("/health", healthHandler).Methods("GET")
router.HandleFunc("/health/toggle", healthToggleHandler).Methods("GET")
httpServer := &http.Server{Addr: ":" + port, Handler: enableCors(router, corsList)}
newServer := &Server{HttpServer: httpServer, Listener: listener}