fix: Adds courses/categories route

This commit is contained in:
Khaled Garbaya
2017-11-06 11:19:17 +01:00
committed by Benedikt Rötsch
parent cdb0a07ff7
commit 9f61d33500

View File

@@ -17,6 +17,7 @@ router.get('/', catchErrors(getLandingPage))
// Courses routes // Courses routes
router.get('/courses', catchErrors(getCourses)) router.get('/courses', catchErrors(getCourses))
router.get('/courses/categories', catchErrors(getCourses))
router.get('/courses/categories/:category', catchErrors(getCoursesByCategory)) router.get('/courses/categories/:category', catchErrors(getCoursesByCategory))
router.get('/courses/:slug', catchErrors(getCourse)) router.get('/courses/:slug', catchErrors(getCourse))
router.get('/courses/:slug/lessons', catchErrors(getCourse)) router.get('/courses/:slug/lessons', catchErrors(getCourse))