Skip to content

Commit

Permalink
Configure the homepage as a live view
Browse files Browse the repository at this point in the history
  • Loading branch information
sgobotta committed Mar 21, 2024
1 parent bc89262 commit 893a35c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ex_finance_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ defmodule ExFinanceWeb.Router do

live_session :default,
on_mount: [
{ExFinanceWeb.Theme, :fetch_theme}
{ExFinanceWeb.Theme, :fetch_theme},
{ExFinanceWeb.UserAuth, :mount_current_user}
] do
scope "/", ExFinanceWeb do
pipe_through :browser

get "/", PageController, :home
live "/", Public.HomeLive.Index, :index

scope "/currencies", Public.CurrencyLive do
live "/", Index, :index
Expand Down

0 comments on commit 893a35c

Please sign in to comment.