2016-10-19 03:11:36 +00:00
|
|
|
# Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
|
2016-07-10 22:47:21 +00:00
|
|
|
|
|
|
|
class KarmaController < ApplicationController
|
2017-02-15 12:29:25 +00:00
|
|
|
prepend_before_action :authentication_check
|
2016-07-10 22:47:21 +00:00
|
|
|
|
|
|
|
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
|