aboutsummaryrefslogtreecommitdiff
path: root/shardweb/lib/controllers/chat_controller.ex
diff options
context:
space:
mode:
Diffstat (limited to 'shardweb/lib/controllers/chat_controller.ex')
-rw-r--r--shardweb/lib/controllers/chat_controller.ex13
1 files changed, 13 insertions, 0 deletions
diff --git a/shardweb/lib/controllers/chat_controller.ex b/shardweb/lib/controllers/chat_controller.ex
new file mode 100644
index 0000000..45b7d34
--- /dev/null
+++ b/shardweb/lib/controllers/chat_controller.ex
@@ -0,0 +1,13 @@
+defmodule ShardWeb.ChatController do
+ use ShardWeb, :controller
+
+ def chat(conn, %{"room" => room}) do
+ conn = put_gon(conn, chat_room: room)
+ render conn, "chat.html",
+ room: room
+ end
+
+ def privchat(_conn, %{"pk" => _pk}) do
+ # TODO
+ end
+end