bones73k/lib/real_estate_web/live/user_dashboard_live.ex
João Gilberto Balsini Moura 8590df5032 Add authorised routes with tests
2020-09-14 13:10:54 -03:00

19 lines
361 B
Elixir

defmodule RealEstateWeb.UserDashboardLive do
use RealEstateWeb, :live_view
@impl true
def mount(_params, session, socket) do
socket = assign_defaults(session, socket)
{:ok, socket}
end
@impl true
def render(assigns) do
~L"""
<section class="phx-hero">
<h1>Welcome to the user dashboard!</h1>
</section>
"""
end
end