Skip to content
Snippets Groups Projects
Verified Commit 5226bc97 authored by Damien's avatar Damien
Browse files

FEAT #10954 TIME 0:05 Allowed routes

parent b2efaf22
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ $app->add(function (\Slim\Http\Request $request, \Slim\Http\Response $response,
if (!is_file($configPath . '/config.xml')) {
return $response->withStatus(400)->withJson(['errors' => 'Configuration file is missing']);
}
$routesWithoutAuthentication = ['GET/authenticationInformations', 'POST/log', 'POST/password', 'PUT/password', 'GET/passwordRules', 'GET/languages/{lang}'];
$routesWithoutAuthentication = ['GET/authenticationInformations', 'POST/authenticate', 'POST/password', 'PUT/password', 'GET/passwordRules', 'GET/languages/{lang}'];
$route = $request->getAttribute('route');
$currentMethod = empty($route) ? '' : $route->getMethods()[0];
$currentRoute = empty($route) ? '' : $route->getPattern();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment