Loading go-apps/meep-vis/server/vis.go +6 −5 Original line number Diff line number Diff line Loading @@ -634,11 +634,6 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) { return } if len(requestData.Routes) < 2 { log.Error("At least two routes are required") http.Error(w, "At least two routes are required", http.StatusBadRequest) } responseData := requestData // Both reqesut and response have same data model for i, route := range requestData.Routes { Loading @@ -648,6 +643,12 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) { return } if len(route.RouteInfo) < 2 { log.Error("At least two routeInfo required in a route") http.Error(w, "At least two routeInfo required in a route", http.StatusBadRequest) return } var geocoordinates []gisClient.GeoCoordinate for _, routeInfo := range route.RouteInfo { if routeInfo.Location == nil { Loading Loading
go-apps/meep-vis/server/vis.go +6 −5 Original line number Diff line number Diff line Loading @@ -634,11 +634,6 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) { return } if len(requestData.Routes) < 2 { log.Error("At least two routes are required") http.Error(w, "At least two routes are required", http.StatusBadRequest) } responseData := requestData // Both reqesut and response have same data model for i, route := range requestData.Routes { Loading @@ -648,6 +643,12 @@ func predictedQosPost(w http.ResponseWriter, r *http.Request) { return } if len(route.RouteInfo) < 2 { log.Error("At least two routeInfo required in a route") http.Error(w, "At least two routeInfo required in a route", http.StatusBadRequest) return } var geocoordinates []gisClient.GeoCoordinate for _, routeInfo := range route.RouteInfo { if routeInfo.Location == nil { Loading