blob: 4d9adb4e979e08bfeab194abea29df64b3be1f34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
defmodule ShardWeb.RoomController do
use ShardWeb, :controller
import PhoenixGon.Controller
def show(conn, %{"room" => room}) do
conn = put_gon(conn, chat_room: room)
render conn, "show.html",
room: room,
name: Shard.Identity.get_nickname
end
end
|