feat(chat): add room index page

This commit is contained in:
2024-11-13 23:25:20 +00:00
parent 124e18d656
commit afea52077b
3 changed files with 64 additions and 0 deletions

View File

@@ -61,6 +61,7 @@ defmodule SlaxWeb.Router do
live_session :require_authenticated_user,
on_mount: [{SlaxWeb.UserAuth, :ensure_authenticated}] do
live "/", ChatRoomLive
live "/rooms", ChatRoomLive.Index
live "/rooms/:id", ChatRoomLive
live "/rooms/:id/edit", ChatRoomLive.Edit
live "/users/settings", UserSettingsLive, :edit