summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-03-07 00:01:47 -0800
committerSteve Manuel <nilslice@gmail.com>2017-03-07 00:01:47 -0800
commit98391be4d00e677b7532e9dcfe11babbbfe2c303 (patch)
treeef407ec0eaa669db54647c4c72b493c8215c0828 /addons
parent986a2130a59b25fdc7730b3a974d5f5338bd7cb1 (diff)
updating reference package
Diffstat (limited to 'addons')
-rw-r--r--addons/github.com/bosssauce/reference/reference.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/github.com/bosssauce/reference/reference.go b/addons/github.com/bosssauce/reference/reference.go
index 9918f36..753fa41 100644
--- a/addons/github.com/bosssauce/reference/reference.go
+++ b/addons/github.com/bosssauce/reference/reference.go
@@ -115,7 +115,7 @@ func SelectRepeater(fieldName string, p interface{}, attrs map[string]string, co
func encodeDataToOptions(contentType, tmplString string) (map[string]string, error) {
// encode all content type from db into options map
- // options in form of map["?type=<contentType>&id=<id>"]t.String()
+ // options in form of map["/api/content?type=<contentType>&id=<id>"]t.String()
options := make(map[string]string)
var all map[string]interface{}
@@ -134,7 +134,7 @@ func encodeDataToOptions(contentType, tmplString string) (map[string]string, err
for i := range data {
item := data[i].(map[string]interface{})
- k := fmt.Sprintf("?type=%s&id=%.0f", contentType, item["id"].(float64))
+ k := fmt.Sprintf("/api/content?type=%s&id=%.0f", contentType, item["id"].(float64))
v := &bytes.Buffer{}
err := tmpl.Execute(v, item)
if err != nil {