myheats

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

commit 6d1f1b0f61254b8eaebeedf0f81d5e05cf05c97e
parent 69ad84192c929fb55b73810a7f41a9b06590772a
Author: Andreas Gruhler <agruhl@gmx.ch>
Date:   Mon,  9 Mar 2026 23:53:58 +0100

feat: remove echo endpoint

Diffstat:
MCHANGELOG.md | 1+
Msrc/api/server.cjs | 12------------
2 files changed, 1 insertion(+), 12 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Changed * PostgreSQL 17 in docker-compose dev setup +* Remove API echo endpoint ### Fixed diff --git a/src/api/server.cjs b/src/api/server.cjs @@ -55,7 +55,6 @@ const transport = nodemailer.createTransport({ const paths = [ '/v1/healthz', // not authenticated '/v1/auth/verify', // not authenticated - '/v1/echo', // not authenticated '/v1/auth/requestMagicLink', // not authenticated '/v1/auth/invalidateToken', // not implemented '/v1/leaderboard/allHeats', // 🔓 partly authenticated @@ -253,17 +252,6 @@ server.on('request', async (req, res) => { let body = []; switch(url.pathname) { - case '/v1/echo': - req.on('data', chunk => { - body.push(chunk); - }).on('end', () => { - body = JSON.stringify({ - message: 'Uncle roger knows do egg fried rice since 3 years old, lah', - data: Buffer.concat(body).toString(), - }); - res.end(body); - }) - break case '/v1/auth/requestMagicLink': req.on('data', chunk => { body.push(chunk);