changed protocol used in dynamic endpoints
This commit is contained in:
parent
29b6316188
commit
c953c2a0f1
@ -73,7 +73,7 @@ func getComponent(c echo.Context) error {
|
|||||||
container := c.Param("container")
|
container := c.Param("container")
|
||||||
component := c.Param("component")
|
component := c.Param("component")
|
||||||
|
|
||||||
requestURL := fmt.Sprintf("https://%s:8080/component/%s", container, component)
|
requestURL := fmt.Sprintf("http://%s:8080/component/%s", container, component)
|
||||||
resp, err := http.Get(requestURL)
|
resp, err := http.Get(requestURL)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Request to container failed: %v", err)
|
log.Fatalf("Request to container failed: %v", err)
|
||||||
@ -93,7 +93,7 @@ func postComponent(c echo.Context) error {
|
|||||||
container := c.Param("container")
|
container := c.Param("container")
|
||||||
component := c.Param("component")
|
component := c.Param("component")
|
||||||
|
|
||||||
requestURL := fmt.Sprintf("https://%s:8080/component/%s", container, component)
|
requestURL := fmt.Sprintf("http://%s:8080/component/%s", container, component)
|
||||||
resp, err := http.Post(requestURL, "application/json", c.Request().Body)
|
resp, err := http.Post(requestURL, "application/json", c.Request().Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("Request to container failed: %v", err)
|
log.Fatalf("Request to container failed: %v", err)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user