From e1f5a61237492c6e4ebea0d25529813736489e40 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Wed, 17 Jun 2015 22:05:53 -0300 Subject: [PATCH] api: fix article follow --- lib/noosfero/api/v1/articles.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/noosfero/api/v1/articles.rb b/lib/noosfero/api/v1/articles.rb index eb1ede7..c5d1ca3 100644 --- a/lib/noosfero/api/v1/articles.rb +++ b/lib/noosfero/api/v1/articles.rb @@ -37,7 +37,7 @@ module Noosfero end desc "Add a follower for the article" - get ':id/follow' do + post ':id/follow' do article = find_article(environment.articles, params[:id]) article_follower = ArticleFollower.new article_follower.article = article -- libgit2 0.21.2