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))