- Method `GET`
- Params:
- `query`: **string** *optional* search term
- - `only_local`: **bool** *optional* whether to return only local users
+ - `local_only`: **bool** *optional* whether to return only local users
- `page`: **integer** *optional* page number
- `page_size`: **integer** *optional* number of users per page (default is `50`)
- Response:
do: json_response(conn, :no_content, "")
end
- # def list_users(conn, params) do
- # {page, page_size} = page_params(params)
-
- # with {:ok, users, count} <- User.all_for_admin(page, page_size),
- # do:
- # conn
- # |> json(
- # AccountView.render("index.json",
- # users: users,
- # count: count,
- # page_size: page_size
- # )
- # )
- # end
-
def list_users(%{assigns: %{user: admin}} = conn, params) do
{page, page_size} = page_params(params)