Skip to content

Commit 59322d3

Browse files
committed
remove location list call from server
1 parent 8d3ec66 commit 59322d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

services/location/server.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ func (s *Server) Run() error {
7272

7373
func (s *Server) createServeMux() http.Handler {
7474
mux := tracing.NewServeMux(false, s.tracerProvider, s.logger)
75-
mux.Handle("GET /locations", http.HandlerFunc(s.listLocations))
76-
mux.Handle("GET /location", http.HandlerFunc(s.getLocation))
75+
mux.Handle("GET /location", http.HandlerFunc(s.listLocations))
7776
mux.Handle("POST /location", http.HandlerFunc(s.createLocation))
7877
mux.Handle("DELETE /location", http.HandlerFunc(s.deleteLocation))
7978
mux.Handle("GET /healthz", http.HandlerFunc(func(resp http.ResponseWriter, req *http.Request) {

0 commit comments

Comments
 (0)