Exemplo n.º 1
0
    TaskController::index();
});
$routes->get('/task/', function () {
    TaskController::index();
});
$routes->post('/task', function () {
    TaskController::store();
});
$routes->get('/task/new', function () {
    TaskController::create();
});
$routes->get('/task/:id', function ($id) {
    TaskController::show($id);
});
$routes->post('/task/:id', function ($id) {
    TaskController::update($id);
});
$routes->post('/task/:id/destroy', function ($id) {
    TaskController::destroy($id);
});
$routes->get('/task/:id/edit', function ($id) {
    TaskController::edit($id);
});
$routes->get('/task/:id/markasdone', function ($id) {
    TaskController::markasdone($id);
});
$routes->get('/task/:id/markasundone', function ($id) {
    TaskController::markasundone($id);
});
$routes->post('/login', function () {
    SessionController::store();
Exemplo n.º 2
0
            $sprintController->moveUsToNotAssignedUS($_GET["IDUSERSTORYNotAssignedUS"], $_GET["IDSPRINTNotAssignedUS"]);
            break;
        case 'moveUsToSprintUS':
            $sprintController->moveUsToSprintUS($_GET["IDUSERSTORY"], $_GET["IDSPRINT"]);
            break;
        case 'ListTask':
            $taskController->ListTask($_GET["IDSPRINT"]);
            break;
        case 'addTask':
            $taskController->addTask($_GET["IDSPRINT"]);
            break;
        case 'updateTask':
            $taskController->updateTask($_GET["IDTASK"]);
            break;
        case 'validateUpdate':
            $taskController->update($_POST);
            break;
        case 'DeleteTaskFromSprint':
            $taskController->deleteTask($_GET["IDTASK"], $_GET["IDUSER"], $_GET["IDSPRINT"], $_GET["IDPROJECT"]);
            break;
        case 'ajouterTask':
            $taskController->ajouterTask($_POST);
            break;
        case 'helptTasks':
            $taskController->showHelpTasks($_GET["IDUSER"], $_GET["IDPROJECT"]);
            break;
        default:
            include 'view/home.php';
            break;
    }
} else {