diff options
| author | Claude <noreply@anthropic.com> | 2026-02-20 17:53:55 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-02-20 17:53:55 +0000 |
| commit | 4af93cae1ca54ad7c9bc7eb4b56c010f55c4c72d (patch) | |
| tree | 804f0aee031469aad98a15cf8307cc9f0794c5bc /frontend/app/App.tsx | |
| parent | 00354d392a0bcddaac71fee7b6aae721e5747f59 (diff) | |
| download | phperkaigi-2026-albatross-4af93cae1ca54ad7c9bc7eb4b56c010f55c4c72d.tar.gz phperkaigi-2026-albatross-4af93cae1ca54ad7c9bc7eb4b56c010f55c4c72d.tar.zst phperkaigi-2026-albatross-4af93cae1ca54ad7c9bc7eb4b56c010f55c4c72d.zip | |
feat: allow viewing/spectating games without login
Make watch, ranking, game list, and tournament endpoints accessible
without authentication. Unauthenticated users can browse games and
spectate from the index page, while play/submit/preview still require
login.
https://claude.ai/code/session_019j9tNcnLsLz15e1qtbmeqe
Diffstat (limited to 'frontend/app/App.tsx')
| -rw-r--r-- | frontend/app/App.tsx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/frontend/app/App.tsx b/frontend/app/App.tsx index 3f1333a..be608e4 100644 --- a/frontend/app/App.tsx +++ b/frontend/app/App.tsx @@ -26,9 +26,7 @@ export default function App() { </PublicOnlyRoute> </Route> <Route path="/dashboard"> - <ProtectedRoute> - <DashboardPage /> - </ProtectedRoute> + <DashboardPage /> </Route> <Route path="/golf/:gameId/preview"> {(params) => ( @@ -52,17 +50,11 @@ export default function App() { )} </Route> <Route path="/golf/:gameId/watch"> - {(params) => ( - <ProtectedRoute> - <GolfWatchPage gameId={params.gameId} /> - </ProtectedRoute> - )} + {(params) => <GolfWatchPage gameId={params.gameId} />} </Route> <Route path="/tournament/:tournamentId"> {(params) => ( - <ProtectedRoute> - <TournamentPage tournamentId={params.tournamentId} /> - </ProtectedRoute> + <TournamentPage tournamentId={params.tournamentId} /> )} </Route> <Route> |
