2013-06-12 15:59:58 +00:00
|
|
|
# Copyright (C) 2012-2013 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2012-07-19 21:31:57 +00:00
|
|
|
class ActivityController < ApplicationController
|
|
|
|
before_filter :authentication_check
|
|
|
|
|
2013-08-06 22:10:28 +00:00
|
|
|
# GET /api/v1/activity_stream
|
2012-07-19 21:31:57 +00:00
|
|
|
def activity_stream
|
2012-11-26 23:22:52 +00:00
|
|
|
activity_stream = History.activity_stream_fulldata( current_user, params[:limit] )
|
2012-07-19 21:31:57 +00:00
|
|
|
|
|
|
|
# return result
|
2012-07-23 22:22:23 +00:00
|
|
|
render :json => activity_stream
|
2012-07-19 21:31:57 +00:00
|
|
|
end
|
|
|
|
|
2013-06-12 15:59:58 +00:00
|
|
|
end
|