Copied over SWAssistant and CDR backend
Started converting them to new backend
This commit is contained in:
@@ -213,8 +213,8 @@ func (b *BlogApp) reqLatestBlogs(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
var ret struct {
|
||||
Blogs []Blog `json:"blogs"`
|
||||
Num int `json:"num"`
|
||||
Blogs []*Blog `json:"blogs"`
|
||||
Num int `json:"num"`
|
||||
}
|
||||
ret.Num = len(blogs)
|
||||
ret.Blogs = blogs
|
||||
|
||||
Reference in New Issue
Block a user