aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-05-22 14:14:39 +0100
committerNeil Alexander <neilalexander@users.noreply.github.com>2020-05-22 14:14:39 +0100
commit06d5f1e6dcd9f3e1db92880c7c3f4068cc92ab99 (patch)
tree558ad5fe0d8b2d308085ef31aa45a144abde15cb /internal
parent0978630b552b0f88bf5efc1c59860cbeb706606d (diff)
Fix API paths
Diffstat (limited to 'internal')
-rw-r--r--internal/http/http.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/internal/http/http.go b/internal/http/http.go
index d0b4d6c5..77896a53 100644
--- a/internal/http/http.go
+++ b/internal/http/http.go
@@ -6,8 +6,6 @@ import (
"encoding/json"
"fmt"
"net/http"
- "net/url"
- "strings"
opentracing "github.com/opentracing/opentracing-go"
"github.com/opentracing/opentracing-go/ext"
@@ -23,14 +21,6 @@ func PostJSON(
return err
}
- parsedAPIURL, err := url.Parse(apiURL)
- if err != nil {
- return err
- }
-
- parsedAPIURL.Path = "/api/" + strings.TrimLeft(parsedAPIURL.Path, "/")
- apiURL = parsedAPIURL.String()
-
req, err := http.NewRequest(http.MethodPost, apiURL, bytes.NewReader(jsonBytes))
if err != nil {
return err