Changeset View
Changeset View
Standalone View
Standalone View
lib/kolab_chat/web/controllers/chat_controller.ex
- This file was moved from web/controllers/chat_controller.ex.
defmodule KolabChat.ChatController do | defmodule KolabChat.Web.ChatController do | ||||
use KolabChat.Web, :controller | use KolabChat.Web, :controller | ||||
plug :put_layout, "chat.html" | plug :put_layout, "chat.html" | ||||
def index(conn, %{"room" => room} = _params) do | def index(conn, %{"room" => room} = _params) do | ||||
conn | conn | ||||
|> assign(:room, room) | |> assign(:room, room) | ||||
|> render("index.html") | |> render("index.html") | ||||
end | end | ||||
end | end |