karma_controller.rb 364 B

1234567891011121314
  1. # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
  2. class KarmaController < ApplicationController
  3. prepend_before_action :authentication_check
  4. def index
  5. render json: {
  6. levels: Setting.get('karma_levels'),
  7. user: Karma::User.by_user(current_user),
  8. logs: Karma::ActivityLog.latest(current_user, 20),
  9. }
  10. end
  11. end