Commit 68c93d9c947d1937eebeab4a53877768e3852b53
1 parent
fd5c8db5
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
adding endpoint article voted by me
Showing
1 changed file
with
5 additions
and
0 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
| ... | ... | @@ -126,6 +126,11 @@ module Noosfero |
| 126 | 126 | end |
| 127 | 127 | end |
| 128 | 128 | |
| 129 | + get 'voted_by_me' do | |
| 130 | + present_articles_paginated(current_person.votes.collect(&:voteable)) | |
| 131 | +# present_articles(current_person, 'following_articles') | |
| 132 | + end | |
| 133 | + | |
| 129 | 134 | desc 'Perform a vote on a article by id' do |
| 130 | 135 | detail 'Vote on a specific article with values: 1 (if you like) or -1 (if not)' |
| 131 | 136 | params Noosfero::API::Entities::UserLogin.documentation | ... | ... |