chore: first liveview route

This commit is contained in:
João Paulo Dubas 2024-10-07 23:21:49 +00:00
parent ec3b82cd00
commit 63eff84a58
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,10 @@
defmodule SlaxWeb.ChatRoomLive do
@moduledoc false
use SlaxWeb, :live_view
def render(assigns) do
~H"""
<div>Welcome to the chat!</div>
"""
end
end

View File

@ -17,7 +17,8 @@ defmodule SlaxWeb.Router do
scope "/", SlaxWeb do
pipe_through :browser
get "/", PageController, :home
get "/home", PageController, :home
live "/", ChatRoomLive
end
# Other scopes may use custom stacks.