Commit ab0c4dc79123809af9ef4d6200b9ec5a85b7ac2d

Authored by Hugo Melo
1 parent 68e98247

Add points endpoint

lib/gamification_plugin/api.rb
... ... @@ -32,11 +32,6 @@ class GamificationPlugin::API < Grape::API
32 32 authenticate!
33 33 {:level => current_person.level, :percent => current_person.gamification_plugin_level_percent, :score => current_person.points}
34 34 end
35   -
36   - get 'points' do
37   - authenticate!
38   - {points: current_person.points}
39   - end
40 35 end
41 36  
42 37 resource :people do
... ...
lib/merit/point_rules.rb
... ... @@ -85,7 +85,6 @@ module Merit
85 85 description: _('Voter'),
86 86 default_weight: 10,
87 87 condition: lambda {|vote, profile| vote.voteable.profile == profile }
88   -
89 88 },
90 89 friends: {
91 90 action: 'friendship#create',
... ...