Commit c2e3429ab6e09656b9e2dd46b3b15d0e5056d5bf
Committed by
Hugo Melo
1 parent
ddf429ce
Exists in
master
and in
1 other branch
adapting gamification information
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/gamification_plugin/api.rb
| ... | ... | @@ -9,12 +9,12 @@ class GamificationPlugin::API < Grape::API |
| 9 | 9 | resource :my do |
| 10 | 10 | get 'badges' do |
| 11 | 11 | authenticate! |
| 12 | - present current_person.badges | |
| 12 | + present current_person.badges, :with => Noosfero::API::Entities::Badge | |
| 13 | 13 | end |
| 14 | 14 | |
| 15 | 15 | get 'level' do |
| 16 | 16 | authenticate! |
| 17 | - {:level => current_person.level, :percent => current_person.gamification_plugin_level_percent} | |
| 17 | + {:level => current_person.level, :percent => current_person.gamification_plugin_level_percent, :score => current_person.points} | |
| 18 | 18 | end |
| 19 | 19 | end |
| 20 | 20 | ... | ... |