Allow public leaderboard API reads
This commit is contained in:
@@ -4,6 +4,12 @@ Electric Cherry requires a user session for operator pages and management APIs.
|
||||
HTTPS protects the connection; server-side role checks protect each operation.
|
||||
There is no anonymous management mode or public registration.
|
||||
|
||||
Leaderboard API reads (`GET` and `HEAD /api/leaderboard`) are public and need no
|
||||
session or credentials. This exception covers only that exact API route;
|
||||
leaderboard/profile pages, match-history routes and management operations retain
|
||||
their access checks. HTTPS requirements still apply. See the
|
||||
[leaderboard API reference](leaderboard.md#read-api) for requests and response fields.
|
||||
|
||||
## First administrator and upgrades
|
||||
|
||||
1. Generate a setup secret: `openssl rand -hex 32`.
|
||||
|
||||
Reference in New Issue
Block a user