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

master
dorian.hodin 2 years ago
parent 65b79cd8e7
commit f7dcfd2839

@ -28,8 +28,6 @@ steps:
from_secret : CONTAINER_NAME from_secret : CONTAINER_NAME
COMMAND: create COMMAND: create
OVERWRITE: true OVERWRITE: true
CODEFIRST_CLIENTDRONE_ENV_CONTAINER_NAME:
from_secret : FULL_PATH_NAME
ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal ADMINS: dorianhodin,alexislamande,baptistebaverel,johanlachenal
depends_on: [ formulaire ] depends_on: [ formulaire ]

@ -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');

Loading…
Cancel
Save