diff options
Diffstat (limited to 'public/app/routes')
| -rw-r--r-- | public/app/routes/backend.php | 26 |
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'); }); |
