break; //addNewWorker is post worker detail for new worker //addNewWorker is post worker detail for new worker case 'list': $workerController->render(); break; case 'get': $workerController->getWorker($route[3]); break; default: $workerController->render(); break; } break; case "requests": $serviceRequestsController = new ServiceRequestsController(); $where = $route[2]; switch ($where) { case 'addNew': $serviceRequestsController->addNew(); break; case 'updateRequestStatus': $serviceRequestsController->updateRequestStatus(); break; case 'deleteRequest': $serviceRequestsController->deleteRequest(); break; default: $serviceRequestsController->render(); break; }
$workerController->addNew(); break; // addNew is page for addnewworker // addNew is page for addnewworker case 'addNewWorker': $workerController->addNewWorker(); break; //addNewWorker is post worker detail for new worker //addNewWorker is post worker detail for new worker default: $workerController->renderAgent(); break; } break; case "requests": $serviceRequestsController = new ServiceRequestsController(); $where = $route[2]; switch ($where) { case 'addNew': $serviceRequestsController->addNew(); break; default: $serviceRequestsController->render(); break; } break; default: //langing page of blueteam // Can also be routed to 404 page $agentHomeController = new AgentHomeController(); $agentHomeController->render();