Defining output array as per scrutinizer

This commit is contained in:
Neil Lathwood
2014-10-09 16:47:11 +00:00
parent 0be049fde9
commit 24ee2541ee

View File

@ -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();
}