This is an automated email from the ASF dual-hosted git repository.

zrhoffman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new 5667a02  Remove API 1.x references (#6041)
5667a02 is described below

commit 5667a024db609a919d42e9b54de4922b6b79b52b
Author: ocket8888 <[email protected]>
AuthorDate: Mon Jul 19 16:32:28 2021 -0600

    Remove API 1.x references (#6041)
---
 test/router/js/load-test.jsx | 8 ++++----
 test/router/server/server.go | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/test/router/js/load-test.jsx b/test/router/js/load-test.jsx
index 05cc3d2..f06a6dd 100644
--- a/test/router/js/load-test.jsx
+++ b/test/router/js/load-test.jsx
@@ -247,7 +247,7 @@ var LabBox = React.createClass({
         this.opsHost = formData.opsHost.trim();
 
         $.ajax({
-            url: "http://localhost:8888/api/1.2/user/login?"; + params,
+            url: "http://localhost:8888/api/4.0/user/login?"; + params,
             dataType: 'json',
             type: 'POST',
             crossDomain: true,
@@ -256,7 +256,7 @@ var LabBox = React.createClass({
     },
     handleGetDeliveryServicesSubmit: function(data) {
         return $.ajax({
-            url: 
"http://localhost:8888/api/1.2/deliveryservices.json?opsHost="; + this.opsHost,
+            url: 
"http://localhost:8888/api/4.0/deliveryservices.json?opsHost="; + this.opsHost,
             dataType: 'json',
             type: 'GET',
             success: function(data) {
@@ -298,10 +298,10 @@ var LabBox = React.createClass({
         console.log("handle submit");
         var opsHost = this.state.opsHost.trim();
 
-        
console.log("http://localhost:8888/api/1.2/deliveryservices.json?opsHost="; + 
opsHost);
+        
console.log("http://localhost:8888/api/4.0/deliveryservices.json?opsHost="; + 
opsHost);
 
         $.ajax({
-            url: 
"http://localhost:8888/api/1.2/deliveryservices.json?opsHost="; + opsHost,
+            url: 
"http://localhost:8888/api/4.0/deliveryservices.json?opsHost="; + opsHost,
             dataType: 'json',
             type: 'GET',
             success: function(data) {
diff --git a/test/router/server/server.go b/test/router/server/server.go
index 4a3e16f..95c9800 100644
--- a/test/router/server/server.go
+++ b/test/router/server/server.go
@@ -56,7 +56,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
                fmt.Fprintf(w, string(data))
        }
 
-       if r.Method == "POST" && r.URL.Path == "/api/1.2/user/login" {
+       if r.Method == "POST" && r.URL.Path == "/api/4.0/user/login" {
 
                tr := &http.Transport{
                        TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
@@ -64,7 +64,7 @@ func handler(w http.ResponseWriter, r *http.Request) {
 
                client := &http.Client{Transport: tr}
 
-               url := fmt.Sprintf("https://%v/api/1.2/user/login";, 
r.URL.Query().Get("opsHost"))
+               url := fmt.Sprintf("https://%v/api/4.0/user/login";, 
r.URL.Query().Get("opsHost"))
 
                resp, err := client.Post(url, "application/json", r.Body)
 

Reply via email to