sso url 하드코딩 수정

This commit is contained in:
kyy
2026-01-16 14:01:01 +09:00
parent c7af13f749
commit 3f403e53ce
4 changed files with 14 additions and 5 deletions

View File

@@ -4,7 +4,10 @@ const router = express.Router();
// GET home page
router.get('/', (req, res, next) => {
// The ssoHandler middleware has already attached the user to res.locals
res.render('index', { user: res.locals.user });
res.render('index', {
user: res.locals.user,
ssoUrl: process.env.SSO_URL // Pass SSO_URL to the template
});
});
// GET logout