doc: added comments and updated to latest ashautentication version and required changes

This commit is contained in:
carla 2025-06-19 15:34:24 +02:00 committed by carla
parent a6fcaa1640
commit 7bfde5e230
19 changed files with 74 additions and 478 deletions

View file

@ -42,9 +42,11 @@ defmodule MvWeb.Router do
scope "/", MvWeb do
pipe_through :browser
@doc """
AshAuthentication-specific: We define that all routes can only be accessed when the user is signed in.
"""
ash_authentication_live_session :authentication_required,
on_mount: {MvWeb.LiveUserAuth, :live_user_required} do
get "/", PageController, :home
live "/members", MemberLive.Index, :index