api.rb
534 Bytes
class SerproCaptchaPlugin::API < Grape::API
# resource :dialoga_plugin do
# get 'random_topics/:discussion_id' do
# discussion = ProposalsDiscussionPlugin::Discussion.find(params[:discussion_id])
#
# # render articles using Entity Article
# present discussion.random_topics_one_by_category, :with => Noosfero::API::Entities::Article, :fields => params[:fields]
# end
get 'test_captcha' do
present 'chegou no test_captcha do SerproCaptchaPlugin'
end
# end
end