diff options
author | Steve <nilslice@gmail.com> | 2017-03-07 00:40:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-07 00:40:24 -0800 |
commit | c8bd692a44795f9354acb4583dc35ec3a2604096 (patch) | |
tree | e08663cff0a1879534c5434e52916b6649e1f056 /addons/github.com/bosssauce/reference/reference.go | |
parent | 50613a4972b41d650857e88eae65b2a0e11176ce (diff) | |
parent | d690a82142f3a7c7fa899b970359e3e1da5ea238 (diff) |
Merge pull request #93 from ponzu-cms/ponzu-dev
[core] Add Updateable interface and HTTP/2 Push fixes
Diffstat (limited to 'addons/github.com/bosssauce/reference/reference.go')
-rw-r--r-- | addons/github.com/bosssauce/reference/reference.go | 4 |
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 { |