|
|
@ -83,7 +83,7 @@ class FrontController
|
|
|
|
protected function mapRoutes(): void
|
|
|
|
protected function mapRoutes(): void
|
|
|
|
{
|
|
|
|
{
|
|
|
|
global $controller;
|
|
|
|
global $controller;
|
|
|
|
$this->router->map('GET', '/', array($controller['Candidate'], 'goToForm'), 'goToForm');
|
|
|
|
$this->router->map('GET', '', array($controller['Candidate'], 'goToForm'), 'goToForm');
|
|
|
|
$this->router->map('POST', '/submitForm', array($controller['Candidate'], 'submitForm'), 'submitForm');
|
|
|
|
$this->router->map('POST', '/submitForm', array($controller['Candidate'], 'submitForm'), 'submitForm');
|
|
|
|
$this->router->map('POST', '/addQuestion', array($controller['Admin'], 'addQuestion'), 'addQuestion');
|
|
|
|
$this->router->map('POST', '/addQuestion', array($controller['Admin'], 'addQuestion'), 'addQuestion');
|
|
|
|
$this->router->map('POST', '/addResponse', array($controller['Admin'], 'addResponse'), 'addResponse');
|
|
|
|
$this->router->map('POST', '/addResponse', array($controller['Admin'], 'addResponse'), 'addResponse');
|
|
|
|