doc: added comments and updated to latest ashautentication version and required changes
Some checks are pending
continuous-integration/drone/push Build is pending

This commit is contained in:
carla 2025-06-19 15:34:24 +02:00
parent 2c4af8c2a4
commit e0f26c6164
19 changed files with 75 additions and 480 deletions

View file

@ -41,9 +41,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
@ -63,7 +65,6 @@ defmodule MvWeb.Router do
live "/properties/:id/edit", PropertyLive.Index, :edit
live "/properties/:id", PropertyLive.Show, :show
live "/properties/:id/show/edit", PropertyLive.Show, :edit
end
# ASHAUTHENTICATION GENERATED AUTH ROUTES