Top posts test
This commit is contained in:
parent
725811a2e3
commit
16a2f4fb9e
8 changed files with 90 additions and 2 deletions
10
app/controllers/api/v1/timelines/local_top_controller.rb
Normal file
10
app/controllers/api/v1/timelines/local_top_controller.rb
Normal file
|
@ -0,0 +1,10 @@
|
|||
module Api::V1::Timelines
|
||||
class LocalTopController < ApiController
|
||||
before_action :require_user!
|
||||
|
||||
def show
|
||||
@statuses = LocalTopPostsService.new.call
|
||||
render json: @statuses
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue