Fix too few arguments error

This commit is contained in:
bgokcol committed 2020-11-28 12:06:45 +03:00
1 parent f5bf55c1ca
commit 62bb39f003
1 file changed
+1 -1
+1 -1
View File
@@ -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'];