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,12 +9,12 @@ class GamificationPlugin::API < Grape::API | ||
9 | resource :my do | 9 | resource :my do |
10 | get 'badges' do | 10 | get 'badges' do |
11 | authenticate! | 11 | authenticate! |
12 | - present current_person.badges | 12 | + present current_person.badges, :with => Noosfero::API::Entities::Badge |
13 | end | 13 | end |
14 | 14 | ||
15 | get 'level' do | 15 | get 'level' do |
16 | authenticate! | 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 | end | 18 | end |
19 | end | 19 | end |
20 | 20 |