summaryrefslogtreecommitdiff
path: root/public/app/routes/backend.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-30 00:46:48 +0300
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-04-30 00:46:48 +0300
commit9449b8beef6d83c16a19c160d7c8bc0bf1a02157 (patch)
tree07d257950cb4483cf8b10327e284c5818932f371 /public/app/routes/backend.php
parent463139601c046a5201cb8a73473f8fe5c568b760 (diff)
downloadclassroom-9449b8beef6d83c16a19c160d7c8bc0bf1a02157.tar.gz
classroom-9449b8beef6d83c16a19c160d7c8bc0bf1a02157.tar.bz2
classroom-9449b8beef6d83c16a19c160d7c8bc0bf1a02157.zip
hotfixes: admin redirectrio, admin menu entry
Diffstat (limited to 'public/app/routes/backend.php')
-rw-r--r--public/app/routes/backend.php26
1 files changed, 18 insertions, 8 deletions
diff --git a/public/app/routes/backend.php b/public/app/routes/backend.php
index 027c50a..3a1f024 100644
--- a/public/app/routes/backend.php
+++ b/public/app/routes/backend.php
@@ -17,17 +17,27 @@ use app\extends\Cache_service;
Route::add('/admin', function () { // admin panel
Auth::allowRoles([1, 2, 3]); // allow few admin-panel roles
- Render::view('admin/skeleton', [
- 'title' => 'Διαχείριση Classroom',
- 'action' => 'panel',
- ]);
+
+ // TODO: admin control panel
+ // Render::view('admin/skeleton', [
+ // 'title' => 'Διαχείριση Classroom',
+ // 'action' => 'panel',
+ // ]);
+
+ // teporarily redirect to edit-lessons
+ header('Location: /admin/lessons');
+
});
Route::add('/admin/panel', function () { // admin panel #2
Auth::allowRoles([1, 2, 3]);
- Render::view('admin/skeleton', [
- 'title' => 'Διαχείριση Classroom',
- 'action' => 'panel',
- ]);
+ // TODO: admin control panel
+ // Render::view('admin/skeleton', [
+ // 'title' => 'Διαχείριση Classroom',
+ // 'action' => 'panel',
+ // ]);
+
+ // teporarily redirect to edit-lessons
+ header('Location: /admin/lessons');
});