func DeletePost(c web.C, w http.ResponseWriter, r *http.Request) { post := controllers.Post{} post.Id, _ = strconv.Atoi(c.URLParams["id"]) post.Token = r.FormValue("token") helpers.RenderJSON(w, post.DeletePost(), http.StatusOK) }