scinote-web/app/controllers/dashboard/recent_works_controller.rb

11 lines
263 B
Ruby
Raw Normal View History

2020-03-06 20:51:18 +08:00
# frozen_string_literal: true
module Dashboard
class RecentWorksController < ApplicationController
def show
activities = Dashboard::RecentWorkService.new(current_user, current_team, params[:mode]).call
2020-03-09 22:10:51 +08:00
render json: activities
2020-03-06 20:51:18 +08:00
end
end
end