]> cat aescling's git repositories - mastodon.git/commit
Move create/destroy actions for api/v1/statuses to namespace (#3678)
authorMatt Jankowski <mjankowski@thoughtbot.com>
Sat, 10 Jun 2017 07:39:26 +0000 (03:39 -0400)
committerEugen Rochko <eugen@zeonfederated.com>
Sat, 10 Jun 2017 07:39:26 +0000 (09:39 +0200)
commit2925372ff44347fa7066c380a5d51dd35f80682f
tree522c9bae03bbb1bbc7740a7edbddcce15195cd88
parent778430b54a97b619189aaa4140f3e9fc16025323
Move create/destroy actions for api/v1/statuses to namespace (#3678)

Each of mute, favourite, reblog has been updated to:

- Have a separate controller with just a create and destroy action
- Preserve historical route names to not break the API
- Mild refactoring to break up long methods
app/controllers/api/v1/statuses/favourites_controller.rb [new file with mode: 0644]
app/controllers/api/v1/statuses/mutes_controller.rb [new file with mode: 0644]
app/controllers/api/v1/statuses/reblogs_controller.rb [new file with mode: 0644]
app/controllers/api/v1/statuses_controller.rb
config/routes.rb
spec/controllers/api/v1/statuses/favourites_controller_spec.rb [new file with mode: 0644]
spec/controllers/api/v1/statuses/mutes_controller_spec.rb [new file with mode: 0644]
spec/controllers/api/v1/statuses/reblogs_controller_spec.rb [new file with mode: 0644]
spec/controllers/api/v1/statuses_controller_spec.rb
spec/routing/api_routing_spec.rb