feat(courses): Add course list

This commit is contained in:
Khaled Garbaya
2017-09-25 17:30:47 +02:00
committed by Benedikt Rötsch
parent 354df3c4b4
commit 6c7ab31305
7 changed files with 57 additions and 11 deletions

6
app.js
View File

@@ -1,3 +1,4 @@
require('dotenv').config({ path: 'variables.env' })
const express = require('express')
const path = require('path')
// const favicon = require('serve-favicon')
@@ -11,7 +12,7 @@ const categories = require('./routes/categories')
const about = require('./routes/about')
const settings = require('./routes/settings')
const sitemap = require('./routes/sitemap')
const {initClient} = require('./services/contentful')
const app = express()
// view engine setup
@@ -51,4 +52,7 @@ app.use(function (err, req, res, next) {
res.render('error')
})
// init the contentful client
initClient()
module.exports = app