Commit 65f085aa18bcac7f442a2d9f88997ea8ea9c487a

Authored by Victor Costa
Committed by Leandro Santos
1 parent 1bce7987

api: return vote data for articles

Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
lib/noosfero/api/entities.rb
@@ -64,6 +64,8 @@ module Noosfero @@ -64,6 +64,8 @@ module Noosfero
64 expose :profile, :using => Profile 64 expose :profile, :using => Profile
65 expose :categories, :using => Category 65 expose :categories, :using => Category
66 expose :image, :using => Image 66 expose :image, :using => Image
  67 + expose :votes_for
  68 + expose :votes_against
67 end 69 end
68 70
69 class Article < ArticleBase 71 class Article < ArticleBase