summaryrefslogtreecommitdiff
path: root/public/app/routes/frontend.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-24 04:36:57 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-24 04:36:57 +0300
commit17d243371c43847e9dbdeb21395afc0e8f5437ae (patch)
tree7dfe75fe664826f2b1575d13f09e75a500b605fb /public/app/routes/frontend.php
parent74f1c04022328280b996dde0b7089e13d96acf70 (diff)
downloadclassroom-17d243371c43847e9dbdeb21395afc0e8f5437ae.tar.gz
classroom-17d243371c43847e9dbdeb21395afc0e8f5437ae.tar.bz2
classroom-17d243371c43847e9dbdeb21395afc0e8f5437ae.zip
edit lesson: putting all together; media with privile level
Diffstat (limited to 'public/app/routes/frontend.php')
-rw-r--r--public/app/routes/frontend.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/public/app/routes/frontend.php b/public/app/routes/frontend.php
index dde0fcd..898b23a 100644
--- a/public/app/routes/frontend.php
+++ b/public/app/routes/frontend.php
@@ -2,6 +2,7 @@
use app\controllers\Auth;
use app\controllers\Classroom_user;
+use app\controllers\cms\Course;
use app\models\cms\Course_model;
// Home/Welcome
@@ -65,6 +66,13 @@ Route::add('/about/([0-9a-zA-Z-_]*)/([0-9a-zA-Z-_]*)/([0-9a-zA-Z-_]*)',
);
+// serve file
+// ---
+Route::add('/serve/file/([0-9a-zA-Z-_\.\/]*)', function ($path) {
+ Course::serve_file($path);
+});
+
+
/** URL-format Proposal:
* -----------------------------------------------------------------------------
*