myheats

Live heats, scoring and leaderboard for sport events
git clone https://git.in0rdr.ch/myheats.git
Log | Files | Refs | Pull requests | README | LICENSE

commit cacdf04d4f1e6bfef0dab09f0f215d647e2ce236
parent 6965576a465c343aad1a4b6abd828f0841db5107
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date:   Sun, 29 Sep 2024 14:27:01 +0200

feat(api): note authenticated endpoints

Diffstat:
Msrc/api/server.cjs | 26+++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/src/api/server.cjs b/src/api/server.cjs @@ -57,22 +57,22 @@ const paths = [ '/v1/auth/verify', '/v1/echo', '/v1/auth/requestMagicLink', - '/v1/auth/invalidateToken', + '/v1/auth/invalidateToken', // not implemented '/v1/leaderboard/allHeats', - '/v1/leaderboard/allAthletes', - '/v1/leaderboard/newHeat', - '/v1/leaderboard/getHeat', - '/v1/leaderboard/removeHeat', + '/v1/leaderboard/allAthletes', // 🔒 authenticated + '/v1/leaderboard/newHeat', // 🔒 authenticated + '/v1/leaderboard/getHeat', // 🔒 authenticated + '/v1/leaderboard/removeHeat', // 🔒 authenticated '/v1/leaderboard/distinctStartlist', - '/v1/leaderboard/startlistWithAthletes', + '/v1/leaderboard/startlistWithAthletes', // 🔒 authenticated '/v1/leaderboard/scoresForHeatAndAthlete', - '/v1/leaderboard/scoreSummaryForHeatAndAthlete', - '/v1/leaderboard/getScore', - '/v1/leaderboard/setScore', - '/v1/leaderboard/addAthleteToHeat', - '/v1/leaderboard/removeAthleteFromHeat', - '/v1/leaderboard/addAthlete', - '/v1/leaderboard/removeAthlete', + '/v1/leaderboard/scoreSummaryForHeatAndAthlete' + '/v1/leaderboard/getScore', // 🔒 authenticated + '/v1/leaderboard/setScore', // 🔒 authenticated + '/v1/leaderboard/addAthleteToHeat', // 🔒 authenticated + '/v1/leaderboard/removeAthleteFromHeat', // 🔒 authenticated + '/v1/leaderboard/addAthlete', // 🔒 authenticated + '/v1/leaderboard/removeAthlete', // 🔒 authenticated ] console.log("Backend API:", api_uri);