Try to change route 2
continuous-integration/drone/push Build is passing Details

master
dorian.hodin 2 years ago
parent f7dcfd2839
commit e76e6ee056

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

Loading…
Cancel
Save