refactor: Change views

This commit is contained in:
Khaled Garbaya
2017-09-21 14:54:43 +02:00
committed by Benedikt Rötsch
parent 3f6efdf750
commit 3373ff282d
18 changed files with 250 additions and 22 deletions

20
services/contentful.js Normal file
View File

@@ -0,0 +1,20 @@
const { createClient } = require('contentful')
const client = createClient({space: process.env.CF_SPACE, accessToken: process.env.CF_ACCESS_TOKEN})
export function getCourses () {
// TODO
}
export function getLessons (courseId) {
// TODO
}
export function getCategories () {
// TODO
}
export function getCoursesByCategory (category) {
// TODO
}