The code powering m.abunchtell.com https://m.abunchtell.com

rest.rb 262B

12345678910111213
  1. module Mastodon
  2. class Rest < Grape::API
  3. version 'v1', using: :path
  4. format :json
  5. resource :statuses do
  6. desc 'Return a public timeline'
  7. get :all do
  8. present Status.all, with: Mastodon::Entities::Status
  9. end
  10. end
  11. end
  12. end