🔧 Refactor auth route setup for improved readability
This commit is contained in:
@@ -56,7 +56,13 @@ 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 }));
|
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