Merge branch 'split-masto-api/domain-blocks' into 'develop'
authorkaniini <ariadne@dereferenced.org>
Fri, 27 Sep 2019 07:54:08 +0000 (07:54 +0000)
committerkaniini <ariadne@dereferenced.org>
Fri, 27 Sep 2019 07:54:08 +0000 (07:54 +0000)
Extract domain blocks actions from `MastodonAPIController` to `DomainBlockController`

See merge request pleroma/pleroma!1729

1  2 
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
lib/pleroma/web/router.ex
test/web/mastodon_api/mastodon_api_controller_test.exs

index b1003fffaa84262b9d892e39f5b2e54733dab023,d370f30db2550a5455de0b3267328c146b0da4d7..731bec323ddb352d72daee2c21793408496097ff
@@@ -346,9 -346,9 +346,9 @@@ defmodule Pleroma.Web.Router d
        get("/lists/:id", ListController, :show)
        get("/lists/:id/accounts", ListController, :list_accounts)
  
-       get("/domain_blocks", MastodonAPIController, :domain_blocks)
+       get("/domain_blocks", DomainBlockController, :index)
  
 -      get("/filters", MastodonAPIController, :get_filters)
 +      get("/filters", FilterController, :index)
  
        get("/suggestions", MastodonAPIController, :suggestions)