rename university to the app. (#4)

This commit is contained in:
Mario Bodemann
2017-10-04 10:11:47 +02:00
committed by Benedikt Rötsch
parent 71c0c0e95a
commit e773c8b32d
5 changed files with 8 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ exports.getCourses = (locale = 'en-US', api = `cda`) => {
exports.getLandingPage = (locale = 'en-US', api = `cda`) => {
// our Home page is fully configureable via contentful
const client = api === 'cda' ? cdaClient : cpaClient
// TODO slug should be renamed to `contentful-the-example-app` or something ....
return client.getEntries({content_type: 'landingPage', locale, 'fields.slug': 'contentful-university', include: 10})
.then((response) => response.items[0])
}