Commit e1f5a61237492c6e4ebea0d25529813736489e40
1 parent
30c569f6
Exists in
staging
and in
4 other branches
api: fix article follow
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
@@ -37,7 +37,7 @@ module Noosfero | @@ -37,7 +37,7 @@ module Noosfero | ||
37 | end | 37 | end |
38 | 38 | ||
39 | desc "Add a follower for the article" | 39 | desc "Add a follower for the article" |
40 | - get ':id/follow' do | 40 | + post ':id/follow' do |
41 | article = find_article(environment.articles, params[:id]) | 41 | article = find_article(environment.articles, params[:id]) |
42 | article_follower = ArticleFollower.new | 42 | article_follower = ArticleFollower.new |
43 | article_follower.article = article | 43 | article_follower.article = article |