hometown/app/api/mastodon/rest.rb

14 lines
262 B
Ruby
Raw Normal View History

2016-02-20 21:53:20 +00:00
module Mastodon
class Rest < Grape::API
version 'v1', using: :path
format :json
resource :statuses do
desc 'Return a public timeline'
get :all do
present Status.all, with: Mastodon::Entities::Status
end
end
end
end