diff options
Diffstat (limited to 'lib/matrix_app_service_web/controllers/v1/user_controller.ex')
-rw-r--r-- | lib/matrix_app_service_web/controllers/v1/user_controller.ex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/matrix_app_service_web/controllers/v1/user_controller.ex b/lib/matrix_app_service_web/controllers/v1/user_controller.ex index 2f73ad7..9d00f63 100644 --- a/lib/matrix_app_service_web/controllers/v1/user_controller.ex +++ b/lib/matrix_app_service_web/controllers/v1/user_controller.ex @@ -1,7 +1,13 @@ defmodule MatrixAppServiceWeb.V1.UserController do + @moduledoc """ + Controller for users. + """ use MatrixAppServiceWeb, :controller - def show(conn, %{"user_id" => user_id}) do + @doc """ + https://matrix.org/docs/spec/application_service/r0.1.2#get-matrix-app-v1-users-userid + """ + def query(conn, %{"user_id" => user_id}) do adapter = Application.fetch_env!(:matrix_app_service, :user_adapter) with :ok <- adapter.query_user(user_id) do |