ref: master
app/api/v1/activities.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
module Api module V1 class Activities < Grape::API resource :profiles do get ':id/activities' do profile = environment.profiles.find_by id: params[:id] present_activities_for_asset(profile, 'activities') end get ':id/network_activities' do profile = environment.profiles.find_by id: params[:id] present_activities_for_asset(profile, 'tracked_notifications') end end end end end |