Commit ab0c4dc79123809af9ef4d6200b9ec5a85b7ac2d
1 parent
68e98247
Exists in
master
and in
1 other branch
Add points endpoint
Showing
2 changed files
with
0 additions
and
6 deletions
Show diff stats
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', |