From 819d7e04209c2e05341ecf8c2618226f525d4721 Mon Sep 17 00:00:00 2001 From: FragginWagon Date: Thu, 29 Jan 2026 14:24:15 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Update=20API=20route=20to=20remo?= =?UTF-8?q?ve=20/api/=20prefix=20due=20to=20nginx=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code/websites/pokedex.online/server/oauth-proxy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/websites/pokedex.online/server/oauth-proxy.js b/code/websites/pokedex.online/server/oauth-proxy.js index c88e3d0..9f6dbd9 100644 --- a/code/websites/pokedex.online/server/oauth-proxy.js +++ b/code/websites/pokedex.online/server/oauth-proxy.js @@ -34,8 +34,8 @@ app.use(cors({ origin: config.cors.origin })); app.use(express.json()); app.use(requestLogger); -// Mount API routes -app.use('/api/gamemaster', gamemasterRouter); +// Mount API routes (nginx strips /api/ prefix before forwarding) +app.use('/gamemaster', gamemasterRouter); /** * Exchange authorization code for access token