Change messages for wrapper

parent 9f37af58
......@@ -17,7 +17,12 @@ session_start();
date_default_timezone_set('Europe/Athens');
// Instantiate the app
$settings = require __DIR__ . '/../src/settings.php';
$settings_file = __DIR__ . '/../src/settings.phpa';
if (is_readable($settings_file)) {
$settings = require($settings_file);
} else {
$settings = [];
}
$app = new \Slim\App($settings);
$container = $app->getContainer();
......
......@@ -122,7 +122,7 @@ class App
if (preg_match('/^[[:alpha:]Α-ΩΆΈΉΊΌΎΏ\s]+$/', urldecode($surname)) !== 1) {
// malformed surname input
return $res->withJson(['message' => 'Malformed surname'], 500);
return $res->withJson(['message' => 'Malformed surname'], 500);
}
$data = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment