Fix /api/v1/accounts/search by splitting account search into its own function

This commit is contained in:
Mark Felder 2017-10-30 03:37:07 +00:00
commit efe12e1a73
2 changed files with 14 additions and 1 deletions

View file

@ -55,6 +55,7 @@ defmodule Pleroma.Web.Router do
get "/accounts/verify_credentials", MastodonAPIController, :verify_credentials
get "/accounts/relationships", MastodonAPIController, :relationships
get "/accounts/search", MastodonAPIController, :accountsearch
post "/accounts/:id/follow", MastodonAPIController, :follow
post "/accounts/:id/unfollow", MastodonAPIController, :unfollow
post "/accounts/:id/block", MastodonAPIController, :relationship_noop