From 9f61d33500b0f82af32af020509713b4c7031221 Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Mon, 6 Nov 2017 11:19:17 +0100 Subject: [PATCH] fix: Adds `courses/categories` route --- routes/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/routes/index.js b/routes/index.js index dc8f9e8..be818e7 100644 --- a/routes/index.js +++ b/routes/index.js @@ -17,6 +17,7 @@ router.get('/', catchErrors(getLandingPage)) // Courses routes router.get('/courses', catchErrors(getCourses)) +router.get('/courses/categories', catchErrors(getCourses)) router.get('/courses/categories/:category', catchErrors(getCoursesByCategory)) router.get('/courses/:slug', catchErrors(getCourse)) router.get('/courses/:slug/lessons', catchErrors(getCourse))