diff options
author | Maksim <parallel588@gmail.com> | 2019-06-14 11:39:57 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-06-14 11:39:57 +0000 |
commit | ee4ed87fb47fa6c395e0f77b614f1630f3a12637 (patch) | |
tree | f4dbeab1fd2b37b4f722e39e5db9e59c83c148ce /lib/pleroma/web/router.ex | |
parent | f045d1437cb9e1e53565c4f35be2c7ca3a9d73ff (diff) | |
download | pleroma-ee4ed87fb47fa6c395e0f77b614f1630f3a12637.tar.gz |
[#948] /api/v1/account_search added optional parameters (limit, offset, following)
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r-- | lib/pleroma/web/router.ex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex index 1b37d6a93..17733a77b 100644 --- a/lib/pleroma/web/router.ex +++ b/lib/pleroma/web/router.ex @@ -412,7 +412,7 @@ defmodule Pleroma.Web.Router do get("/trends", MastodonAPIController, :empty_array) - get("/accounts/search", MastodonAPIController, :account_search) + get("/accounts/search", SearchController, :account_search) scope [] do pipe_through(:oauth_read_or_public) @@ -431,7 +431,7 @@ defmodule Pleroma.Web.Router do get("/accounts/:id/following", MastodonAPIController, :following) get("/accounts/:id", MastodonAPIController, :user) - get("/search", MastodonAPIController, :search) + get("/search", SearchController, :search) get("/pleroma/accounts/:id/favourites", MastodonAPIController, :user_favourites) end @@ -439,7 +439,7 @@ defmodule Pleroma.Web.Router do scope "/api/v2", Pleroma.Web.MastodonAPI do pipe_through([:api, :oauth_read_or_public]) - get("/search", MastodonAPIController, :search2) + get("/search", SearchController, :search2) end scope "/api", Pleroma.Web do |