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