mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Defining output array as per scrutinizer
This commit is contained in:
@ -483,6 +483,7 @@ function show_endpoints() {
|
||||
global $config;
|
||||
$app = \Slim\Slim::getInstance();
|
||||
$routes = $app->router()->getNamedRoutes();
|
||||
$output = array();
|
||||
foreach($routes as $route) {
|
||||
$output[$route->getName()] = $config['base_url'].$route->getPattern();
|
||||
}
|
||||
|
Reference in New Issue
Block a user