Commit de713c6d86345e07dc75c18f4eb02bc173fd3ba8

Authored by Victor Costa
Committed by Rodrigo Souto
1 parent f4b0d586

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