summaryrefslogtreecommitdiff
path: root/public/app/routes/frontend.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/routes/frontend.php')
-rw-r--r--public/app/routes/frontend.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/public/app/routes/frontend.php b/public/app/routes/frontend.php
index be06b1c..96e9786 100644
--- a/public/app/routes/frontend.php
+++ b/public/app/routes/frontend.php
@@ -2,8 +2,7 @@
use app\controllers\Auth;
use app\controllers\Classroom_user;
-use app\controllers\cms\Course;
-use app\models\cms\Course_model;
+use app\controllers\Cms;
use app\extends\Cache_service;
@@ -34,19 +33,19 @@ Route::notFound( function() { // 404 error page
Route::add('/course/([0-9]*)', // request course by course-id
- function($id) { Course::course($id); }
+ function($id) { Cms::course($id); }
);
Route::add('/lesson/([0-9]*)', // request lesson by lesson-id
- function($id) { Course::lesson($id); }
+ function($id) { Cms::lesson($id); }
);
Route::add('/page/([0-9]*)', // request lesson by lesson-id
- function($id) { Course::page($id); }
+ function($id) { Cms::page($id); }
);
Route::add('/serve/file/([0-9a-zA-Z-_\.\/]*)', // serve file by path
- function ($path) { Course::serve_file($path); } // (also ?type= is sent)
+ function ($path) { Cms::serve_file($path); } // (also ?type= is sent)
);