From 17d243371c43847e9dbdeb21395afc0e8f5437ae Mon Sep 17 00:00:00 2001 From: George Halkiadakis Date: Mon, 24 Apr 2023 04:36:57 +0300 Subject: edit lesson: putting all together; media with privile level --- public/app/routes/frontend.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'public/app/routes/frontend.php') 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: * ----------------------------------------------------------------------------- * -- cgit v1.2.3