1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00
fab-manager/app/controllers/api/feeds_controller.rb
2015-05-05 03:10:25 +02:00

15 lines
262 B
Ruby

class API::FeedsController < API::ApiController
respond_to :json
def twitter_timelines
if params
limit = params[:limit]
else
limit = 3
end
@tweet_news = Feed.twitter.user_timeline(ENV['TWITTER_NAME'], {count: limit})
end
end