-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
32 lines (27 loc) · 888 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
use App\Core\Engine;
require_once './App/config.php';
$action = $_GET['action'] ?? NULL;
switch ($action) {
case 'edit':
echo Engine::getMainController()->getTasksController()->editTask();
break;
case 'create':
echo Engine::getMainController()->getTasksController()->createTask();
break;
case 'changeStatus':
echo Engine::getMainController()->getTasksController()->changeStatus();
break;
case 'login':
echo Engine::getMainController()->getUsersController()->index();
break;
case 'logout':
echo Engine::getMainController()->getUsersController()->logout();
break;
case 'validate':
echo Engine::getMainController()->getUsersController()->validate();
break;
default:
echo Engine::getMainController()->getTasksController()->index();
break;
}