🔒 Add authentication route with secret and admin password configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user