diff --git a/src/bb-modules/Example/Controller/Admin.php b/src/bb-modules/Example/Controller/Admin.php index 076d1adae..0f6a33ac3 100644 --- a/src/bb-modules/Example/Controller/Admin.php +++ b/src/bb-modules/Example/Controller/Admin.php @@ -111,7 +111,7 @@ class Admin implements \Box\InjectionAwareInterface return $app->render('mod_example_index', $params); } - public function get_api(\Box_App $app, $id) + public function get_api(\Box_App $app, $id = null) { // always call this method to validate if admin is logged in $api = $this->di['api_admin'];