Fix /api/v1/accounts/search by splitting account search into its own function
[akkoma] / lib / pleroma / web / router.ex
index 45c47eefb11eb8bd35e25a9878028cbd593839a0..53f4a45e3b72920dc58e79ba37285a38c44b47e7 100644 (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