doc: added comments and updated to latest ashautentication version and required changes
This commit is contained in:
parent
a6fcaa1640
commit
7bfde5e230
19 changed files with 74 additions and 478 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue