chore: first liveview route
This commit is contained in:
parent
ec3b82cd00
commit
63eff84a58
10
lib/slax_web/live/chat_room_live.ex
Normal file
10
lib/slax_web/live/chat_room_live.ex
Normal 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
|
@ -17,7 +17,8 @@ defmodule SlaxWeb.Router do
|
|||||||
scope "/", SlaxWeb do
|
scope "/", SlaxWeb do
|
||||||
pipe_through :browser
|
pipe_through :browser
|
||||||
|
|
||||||
get "/", PageController, :home
|
get "/home", PageController, :home
|
||||||
|
live "/", ChatRoomLive
|
||||||
end
|
end
|
||||||
|
|
||||||
# Other scopes may use custom stacks.
|
# Other scopes may use custom stacks.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user