🔒 Add authentication route with secret and admin password configuration

This commit is contained in:
2026-01-30 05:34:18 +00:00
parent 8c45a748ef
commit 8bcc9ca701

View File

@@ -56,6 +56,7 @@ app.use(requestLogger);
// Mount API routes (nginx strips /api/ prefix before forwarding) // Mount API routes (nginx strips /api/ prefix before forwarding)
app.use('/gamemaster', gamemasterRouter); app.use('/gamemaster', gamemasterRouter);
app.use('/auth', createAuthRouter({ secret: config.secret, adminPassword: config.adminPassword }));
/** /**
* Exchange authorization code for access token * Exchange authorization code for access token