2014-02-03 19:24:49 +00:00
|
|
|
# Copyright (C) 2012-2014 Zammad Foundation, http://zammad-foundation.org/
|
2013-06-12 15:59:58 +00:00
|
|
|
|
2013-09-28 00:07:11 +00:00
|
|
|
class ActivityStreamController < ApplicationController
|
2015-05-07 11:23:55 +00:00
|
|
|
before_action :authentication_check
|
2012-07-19 21:31:57 +00:00
|
|
|
|
2013-08-06 22:10:28 +00:00
|
|
|
# GET /api/v1/activity_stream
|
2013-09-28 00:07:11 +00:00
|
|
|
def show
|
|
|
|
activity_stream = current_user.activity_stream( params[:limit], true )
|
2012-07-19 21:31:57 +00:00
|
|
|
|
|
|
|
# return result
|
2015-04-27 13:42:53 +00:00
|
|
|
render json: activity_stream
|
2012-07-19 21:31:57 +00:00
|
|
|
end
|
|
|
|
|
2013-06-12 15:59:58 +00:00
|
|
|
end
|