diff options
Diffstat (limited to 'server/app/controllers/HomeController.scala')
-rw-r--r-- | server/app/controllers/HomeController.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/app/controllers/HomeController.scala b/server/app/controllers/HomeController.scala index 4d48c98..7f5e596 100644 --- a/server/app/controllers/HomeController.scala +++ b/server/app/controllers/HomeController.scala @@ -31,6 +31,10 @@ class HomeController @Inject() ( Ok(views.html.index()) } + def chat(uid: String) = Action { implicit request => + Ok(views.html.chat(uid)) + } + def socket(uid: String) = WebSocket.accept[Command, Event] { request => ActorFlow.actorRef(out => Props(classOf[ClientActor], uid, room, out)) } |