Initial commit
This commit is contained in:
commit
9c4856bdb1
73 changed files with 1393 additions and 0 deletions
13
app/api/mastodon/rest.rb
Normal file
13
app/api/mastodon/rest.rb
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue