fix(mixins): Add locale/api and active link

This commit is contained in:
Khaled Garbaya
2017-09-28 13:51:53 +02:00
committed by Benedikt Rötsch
parent 07c5cc77b0
commit 713f554609
9 changed files with 32 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ const router = express.Router()
/* GET home page. */
router.get('/', async function (req, res, next) {
const landingPage = await getLandingPage()
const landingPage = await getLandingPage(req.query.locale, req.query.api)
res.render('index', { title: 'Contentful University', landingPage })
})