trabajo-afectivo/app/controllers/karma_controller.rb
2022-01-01 14:38:12 +01:00

14 lines
369 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
class KarmaController < ApplicationController
prepend_before_action :authentication_check
def index
render json: {
levels: Setting.get('karma_levels'),
user: Karma::User.by_user(current_user),
logs: Karma::ActivityLog.latest(current_user, 20),
}
end
end