Extract poll actions from `MastodonAPIController` to `PollController`
authorEgor Kislitsyn <egor@kislitsyn.com>
Tue, 1 Oct 2019 04:44:34 +0000 (11:44 +0700)
committerEgor Kislitsyn <egor@kislitsyn.com>
Tue, 1 Oct 2019 04:44:34 +0000 (11:44 +0700)
commit36a34c36fe518dae23fb19d02ccb43de8c2621dd
tree2b269d3914bd89300751b95c31ce03e4fbe91492
parent703deb66d9346e0c8a160ec6c138b3b53b5183b6
Extract poll actions from `MastodonAPIController` to `PollController`
lib/pleroma/web/controller_helper.ex
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
lib/pleroma/web/mastodon_api/controllers/poll_controller.ex [new file with mode: 0644]
lib/pleroma/web/mastodon_api/controllers/status_controller.ex
lib/pleroma/web/mastodon_api/views/poll_view.ex [new file with mode: 0644]
lib/pleroma/web/mastodon_api/views/status_view.ex
lib/pleroma/web/router.ex
test/web/mastodon_api/controllers/poll_controller_test.exs [new file with mode: 0644]
test/web/mastodon_api/mastodon_api_controller_test.exs
test/web/mastodon_api/views/poll_view_test.exs [new file with mode: 0644]
test/web/mastodon_api/views/status_view_test.exs