Files
plm-lottery/apps/web/urls.py
T
davideandClaude Sonnet 5.5 42e5e33371 A7: player area - play, wallet, movements (WEB-03, WEB-05, WEB-20..27)
Gioca: the round, the player's funds and their bet; the bet is two steps
(a confirmation screen that sends nothing, then an explicit confirm) with a
fresh idempotency key per screen, and the server re-checks everything.
Portafoglio: spendable apart from in-confirmation, deposit address with a QR
of the player's own address, copy button, simulated test deposits.
Movimenti: the player's own ledger, paged, stacked as cards on a phone.
GET /app/stato/ feeds the page and its polling. Every view takes the user from
the session only. Checked end to end in a real browser (Playwright): status
moves from pending to confirmed without a reload, a double click is one bet.
Mutation checks: cross-account leak, non-idempotent POST and unrestricted
test-deposit amounts are all caught.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:41:27 +01:00

18 lines
752 B
Python

from django.urls import path
from . import player_views, views
app_name = "web"
urlpatterns = [
path("", views.home, name="home"),
path("stato/", views.state, name="state"),
path("app/", player_views.play, name="app-home"),
path("app/stato/", player_views.player_state_json, name="player-state"),
path("app/punta/", player_views.bet, name="bet"),
path("app/portafoglio/", player_views.wallet, name="wallet"),
path("app/portafoglio/qr.svg", player_views.wallet_qr, name="wallet-qr"),
path("app/portafoglio/deposito-prova/", player_views.simulated_deposit, name="simulated-deposit"),
path("app/movimenti/", player_views.movements, name="movements"),
path("health/live", views.health_live, name="health-live"),
]