diff options
Diffstat (limited to 'lib/matrix_app_service_web/controllers/v1/room_controller.ex')
-rw-r--r-- | lib/matrix_app_service_web/controllers/v1/room_controller.ex | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/matrix_app_service_web/controllers/v1/room_controller.ex b/lib/matrix_app_service_web/controllers/v1/room_controller.ex index b236dd2..460bcbf 100644 --- a/lib/matrix_app_service_web/controllers/v1/room_controller.ex +++ b/lib/matrix_app_service_web/controllers/v1/room_controller.ex @@ -1,7 +1,13 @@ defmodule MatrixAppServiceWeb.V1.RoomController do + @moduledoc """ + Controller for rooms. + """ use MatrixAppServiceWeb, :controller - def show(conn, %{"room_alias" => room_alias}) do + @doc """ + https://matrix.org/docs/spec/application_service/r0.1.2#get-matrix-app-v1-rooms-roomalias + """ + def query(conn, %{"room_alias" => room_alias}) do adapter = Application.fetch_env!(:matrix_app_service, :room_adapter) with :ok <- adapter.query_alias(room_alias) do |