zammad/app/controllers/activity_stream_controller.rb
Martin Edenhofer 49f328107f Fixed typo.
2016-06-28 22:51:58 +02:00

14 lines
351 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