e02f9a99 by astaxie

fix #161

1 parent aecf4af7
......@@ -14,7 +14,7 @@ func (this *ObejctController) Post() {
var ob models.Object
json.Unmarshal(this.Ctx.RequestBody, &ob)
objectid := models.AddOne(ob)
this.Data["json"] = "{\"ObjectId\":\"" + objectid + "\"}"
this.Data["json"] = map[string]string{"ObjectId": objectid}
this.ServeJson()
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!