getConfiguration()->isDebug(); $app->mount('/', new Controller\Root()); $app->mount('/publications', new Controller\Publications()); $app->mount('/users', new Controller\Users()); $app->mount('/fields', new Controller\Fields()); $app->mount('/subdefs', new Controller\Subdefs); $app->mount('/description', new Controller\Description()); $app->mount('/tests/connection', new ControllerUtils\ConnectionTest()); $app->mount('/tests/pathurl', new ControllerUtils\PathFileTest()); $app->error(function(\Exception $e) { return $e->getMessage(); }); return $app; });