diff --git a/app/controllers/web/console.php b/app/controllers/web/console.php index 4e9bd78fc..480c4ff9b 100644 --- a/app/controllers/web/console.php +++ b/app/controllers/web/console.php @@ -133,7 +133,11 @@ $utopia->get('/console/webhooks') ->label('scope', 'console') ->action(function () use ($layout) { $page = new View(__DIR__.'/../../views/console/webhooks/index.phtml'); - + + $page + ->setParam('events', Config::getParam('events', [])) + ; + $layout ->setParam('title', APP_NAME.' - Webhooks') ->setParam('body', $page); diff --git a/app/init.php b/app/init.php index f07ab8333..88e58cef7 100644 --- a/app/init.php +++ b/app/init.php @@ -54,6 +54,7 @@ $response = new Response(); /* * ENV vars */ +Config::load('events', __DIR__.'/../app/config/events.php'); Config::load('providers', __DIR__.'/../app/config/providers.php'); Config::load('platforms', __DIR__.'/../app/config/platforms.php'); Config::load('locales', __DIR__.'/../app/config/locales.php'); diff --git a/app/views/console/webhooks/index.phtml b/app/views/console/webhooks/index.phtml index d71dd99df..bcd001254 100644 --- a/app/views/console/webhooks/index.phtml +++ b/app/views/console/webhooks/index.phtml @@ -1,26 +1,6 @@ getParam('events', [])); ?>