Commit fa513e94f68695a023c7754f854b0df956516d73
1 parent
c52d71cf
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
communiticating api to plugin ok
Showing
2 changed files
with
12 additions
and
8 deletions
Show diff stats
plugins/serpro_captcha/lib/serpro_captcha_plugin.rb
1 | 1 | class SerproCaptchaPlugin < Noosfero::Plugin |
2 | 2 | |
3 | 3 | def self.plugin_name |
4 | - _('Dialoga custom plugin') | |
4 | + _('Serpro captcha plugin') | |
5 | 5 | end |
6 | 6 | |
7 | 7 | def self.plugin_description |
8 | - _("Provide a plugin to dialoga environment.") | |
8 | + _("Provide a plugin to Serpro's captcha infrastructure.") | |
9 | 9 | end |
10 | 10 | |
11 | 11 | def self.api_mount_points | ... | ... |
plugins/serpro_captcha/lib/serpro_captcha_plugin/api.rb
1 | 1 | class SerproCaptchaPlugin::API < Grape::API |
2 | 2 | |
3 | - resource :dialoga_plugin do | |
4 | - get 'random_topics/:discussion_id' do | |
5 | - discussion = ProposalsDiscussionPlugin::Discussion.find(params[:discussion_id]) | |
3 | + # resource :dialoga_plugin do | |
4 | + # get 'random_topics/:discussion_id' do | |
5 | + # discussion = ProposalsDiscussionPlugin::Discussion.find(params[:discussion_id]) | |
6 | + # | |
7 | + # # render articles using Entity Article | |
8 | + # present discussion.random_topics_one_by_category, :with => Noosfero::API::Entities::Article, :fields => params[:fields] | |
9 | + # end | |
6 | 10 | |
7 | - # render articles using Entity Article | |
8 | - present discussion.random_topics_one_by_category, :with => Noosfero::API::Entities::Article, :fields => params[:fields] | |
11 | + get 'test_captcha' do | |
12 | + present 'chegou no test_captcha do SerproCaptchaPlugin' | |
9 | 13 | end |
10 | - end | |
14 | + # end | |
11 | 15 | |
12 | 16 | end | ... | ... |