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