Skip to content

Commit

Permalink
Some AdminWeb call from not browser but server
Browse files Browse the repository at this point in the history
  • Loading branch information
powerkimhub committed Jul 21, 2021
1 parent 109f313 commit f35e7a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api-runtime/rest-runtime/admin-web/AdminWeb.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func makeKeyPairSelect_html(onchangeFunctionName string, strList []string, id st

func getResourceList_JsonByte(resourceName string) ([]byte, error) {
// cr.ServicePort = ":1024"
url := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/" + resourceName
url := "http://" + "localhost" + cr.ServerPort + "/spider/" + resourceName

// get object list
res, err := http.Get(url)
Expand All @@ -320,7 +320,7 @@ func getResourceList_JsonByte(resourceName string) ([]byte, error) {

func getResourceList_with_Connection_JsonByte(connConfig string, resourceName string) ([]byte, error) {
// cr.ServicePort = ":1024"
url := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/" + resourceName
url := "http://" + "localhost" + cr.ServerPort + "/spider/" + resourceName
// get object list
var reqBody struct {
Value string `json:"ConnectionName"`
Expand Down Expand Up @@ -350,7 +350,7 @@ func getResourceList_with_Connection_JsonByte(connConfig string, resourceName st

func getAllResourceList_with_Connection_JsonByte(connConfig string, resourceName string) ([]byte, error) {
// cr.ServicePort = ":1024"
url := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/all" + resourceName
url := "http://" + "localhost" + cr.ServerPort + "/spider/all" + resourceName
// get object list
var reqBody struct {
Value string `json:"ConnectionName"`
Expand Down Expand Up @@ -380,7 +380,7 @@ func getAllResourceList_with_Connection_JsonByte(connConfig string, resourceName

func getResource_JsonByte(resourceName string, name string) ([]byte, error) {
// cr.ServicePort = ":1024"
url := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/" + resourceName + "/" + name
url := "http://" + "localhost" + cr.ServerPort + "/spider/" + resourceName + "/" + name

// get object list
res, err := http.Get(url)
Expand All @@ -397,7 +397,7 @@ func getResource_JsonByte(resourceName string, name string) ([]byte, error) {

func getResource_with_Connection_JsonByte(connConfig string, resourceName string, name string) ([]byte, error) {
// cr.ServicePort = ":1024"
url := "http://" + cr.ServiceIPorName + cr.ServicePort + "/spider/" + resourceName + "/" + name
url := "http://" + "localhost" + cr.ServerPort + "/spider/" + resourceName + "/" + name
// get object list
var reqBody struct {
Value string `json:"ConnectionName"`
Expand Down

0 comments on commit f35e7a5

Please sign in to comment.