sso url 하드코딩 수정
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user