diff --git a/code/websites/pokedex.online/server/oauth-proxy.js b/code/websites/pokedex.online/server/oauth-proxy.js index 1279635..f784c08 100644 --- a/code/websites/pokedex.online/server/oauth-proxy.js +++ b/code/websites/pokedex.online/server/oauth-proxy.js @@ -56,6 +56,7 @@ app.use(requestLogger); // Mount API routes (nginx strips /api/ prefix before forwarding) app.use('/gamemaster', gamemasterRouter); +app.use('/auth', createAuthRouter({ secret: config.secret, adminPassword: config.adminPassword })); /** * Exchange authorization code for access token