activity_stream_controller.rb 359 B

1234567891011121314
  1. # Copyright (C) 2012-2016 Zammad Foundation, http://zammad-foundation.org/
  2. class ActivityStreamController < ApplicationController
  3. prepend_before_action :authentication_check
  4. # GET /api/v1/activity_stream
  5. def show
  6. activity_stream = current_user.activity_stream(params[:limit], true)
  7. # return result
  8. render json: activity_stream
  9. end
  10. end