zammad/app/controllers/activity_stream_controller.rb
2015-05-07 13:24:04 +02:00

14 lines
353 B
Ruby

# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
class ActivityStreamController < ApplicationController
before_action :authentication_check
# GET /api/v1/activity_stream
def show
activity_stream = current_user.activity_stream( params[:limit], true )
# return result
render json: activity_stream
end
end