commit ac298c1e654c5fb1dbec89d842a2228abb443c3c
parent 92c3859908c7235389be5fd6c18a200b4897d4ee
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Sat, 28 Sep 2024 11:25:17 +0200
fix(api): unauth allHeats and startlist
Diffstat:
1 file changed, 0 insertions(+), 2 deletions(-)
diff --git a/src/api/server.cjs b/src/api/server.cjs
@@ -143,7 +143,6 @@ server.on('request', async (req, res) => {
break
case '/v1/leaderboard/allHeats':
try {
- await verifyToken(req, token)
const heats = await db.allHeats()
res.end(JSON.stringify({
@@ -245,7 +244,6 @@ server.on('request', async (req, res) => {
}).on('end', async () => {
const b = Buffer.concat(body);
try {
- await verifyToken(req, token)
if (b.length < 1) {
throw new Error("Empty request body")
}