A lightly modified copy of Mastodon, the canonical repository for Chinwag Social's live code. https://social.chinwag.org/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rest.rb 262B

  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