]> cat aescling's git repositories - mastodon.git/commit
Move timelines API from statuses to its own controller, add a check for
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 8 Nov 2016 22:22:44 +0000 (23:22 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Tue, 8 Nov 2016 22:29:08 +0000 (23:29 +0100)
commit9aecc0f48a046e0a05b8ca69511f8b72756fb431
tree636bb2399ec2f853af5ebd593af6c75e311c7dd7
parent86574ea5248219fa35ecb0748920df9ff1ce6110
Move timelines API from statuses to its own controller, add a check for
resources that require a user context vs those that don't (such as public timeline)

/api/v1/statuses/public   -> /api/v1/timelines/public
/api/v1/statuses/home     -> /api/v1/timelines/home
/api/v1/statuses/mentions -> /api/v1/timelines/mentions
/api/v1/statuses/tag/:tag -> /api/v1/timelines/tag/:tag
12 files changed:
app/assets/javascripts/components/actions/timelines.jsx
app/controllers/api/v1/accounts_controller.rb
app/controllers/api/v1/follows_controller.rb
app/controllers/api/v1/media_controller.rb
app/controllers/api/v1/statuses_controller.rb
app/controllers/api/v1/timelines_controller.rb [new file with mode: 0644]
app/controllers/api_controller.rb
app/models/status.rb
app/views/api/v1/timelines/index.rabl [new file with mode: 0644]
config/routes.rb
spec/controllers/api/v1/statuses_controller_spec.rb
spec/controllers/api/v1/timelines_controller_spec.rb [new file with mode: 0644]