rest.rb 262 Bytes
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1
2
3
4
5
6
7
8
9
10
11
12
13
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