This commit is contained in:
Alex S 2019-09-13 08:07:29 +03:00
parent 17ff63b3c3
commit a18f1e7cd7
3 changed files with 4 additions and 4 deletions

View File

@ -224,7 +224,7 @@ Note: Available `:permission_group` is currently moderator and admin. 404 is ret
## `/api/pleroma/admin/users/invite_token`
### Get an account registration invite token
### Create an account registration invite token
- Methods: `POST`
- Params:

View File

@ -400,8 +400,8 @@ def email_invite(%{assigns: %{user: user}} = conn, %{"email" => email} = params)
end
end
@doc "Get an account registration invite token"
def get_invite_token(conn, params) do
@doc "Create an account registration invite token"
def create_invite_token(conn, params) do
opts = %{}
opts =

View File

@ -180,7 +180,7 @@ defmodule Pleroma.Web.Router do
post("/relay", AdminAPIController, :relay_follow)
delete("/relay", AdminAPIController, :relay_unfollow)
post("/users/invite_token", AdminAPIController, :get_invite_token)
post("/users/invite_token", AdminAPIController, :create_invite_token)
get("/users/invites", AdminAPIController, :invites)
post("/users/revoke_invite", AdminAPIController, :revoke_invite)
post("/users/email_invite", AdminAPIController, :email_invite)