feat(web): leaderboard and replays pages with nav from landing
Build and Deploy / build-and-push (push) Successful in 3m38s
Build and Deploy / build-and-push (push) Successful in 3m38s
- Add leaderboard.html: JWT login form + localStorage token + table - Add replays.html: public listing of recent replays, row click to viewer - Wire /leaderboard and /replays routes in build_router_inner - Fix home.html Recent Replays link from /api/replays/recent to /replays Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -213,6 +213,14 @@ fn build_router_inner(state: AppState, rate_limit: bool) -> Router {
|
||||
"/play",
|
||||
get(|| async { Html(include_str!("../web/game.html")) }),
|
||||
)
|
||||
.route(
|
||||
"/leaderboard",
|
||||
get(|| async { Html(include_str!("../web/leaderboard.html")) }),
|
||||
)
|
||||
.route(
|
||||
"/replays",
|
||||
get(|| async { Html(include_str!("../web/replays.html")) }),
|
||||
)
|
||||
.nest_service("/web", ServeDir::new("solitaire_server/web"))
|
||||
.nest_service("/assets", ServeDir::new("assets"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user