Skip to content

Commit

Permalink
Gossiper /gossip/ update
Browse files Browse the repository at this point in the history
Updated base directory to return 404 error
  • Loading branch information
mwl11002 authored Apr 28, 2022
1 parent fa781c4 commit 9f31128
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CTng/server/Gossiper_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (

type Gossiper interface {
// Response to entering the 'base page' of a gossiper.
// Used to test general functionality of the
homePage()
// HTTP POST request, receive a JSON object from another gossiper or connected monitor.
// /gossip/push-data
Expand Down Expand Up @@ -92,7 +91,7 @@ func initializeGossiperEndpoints(c *gossip.GossiperContext) {
}

func homePage(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Welcome to the base page for the CTng gossiper.")
http.Error(w, "Page not found.", http.StatusNotFound)
}

// handleGossipObjectRequest() is run when /gossip/get-data is accessed or sent a GET request.
Expand Down

0 comments on commit 9f31128

Please sign in to comment.