Add user profile hub with account, settings and data export (#103)

This commit is contained in:
2026-11-06 21:13:37 +01:00
committed by GitHub
parent f5efcde5ca
commit c71f465487
21 changed files with 893 additions and 251 deletions
+7 -2
View File
@@ -68,11 +68,16 @@ defmodule ChesstrainerWeb.Router do
on_mount: [{ChesstrainerWeb.UserAuth, :require_authenticated}] do
live "/endgames", EndgameLive.PlayerIndex, :index
live "/train", EndgameLive.Train, :train
live "/users/settings", UserLive.Settings, :edit
live "/users/settings/confirm-email/:token", UserLive.Settings, :confirm_email
live "/users/profile", UserLive.Profile, :account
live "/users/profile/settings", UserLive.Profile, :settings
live "/users/profile/data", UserLive.Profile, :data
# Legacy settings URL; keep old links and emails working.
live "/users/settings", UserLive.Profile, :account
live "/users/settings/confirm-email/:token", UserLive.Profile, :confirm_email
end
post "/users/update-password", UserSessionController, :update_password
get "/users/profile/export/:format", UserDataController, :export
end
scope "/", ChesstrainerWeb do