diff options
Diffstat (limited to 'app/api/mastodon/rest.rb')
-rw-r--r-- | app/api/mastodon/rest.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/api/mastodon/rest.rb b/app/api/mastodon/rest.rb new file mode 100644 index 000000000..e011ab34d --- /dev/null +++ b/app/api/mastodon/rest.rb @@ -0,0 +1,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 |