diff --git a/public/000-default.conf b/public/000-default.conf index 417b1ee..f248063 100755 --- a/public/000-default.conf +++ b/public/000-default.conf @@ -9,9 +9,9 @@ #ServerName www.example.com ServerAdmin webmaster@localhost - DocumentRoot /var/www/localhost/public + DocumentRoot /home/edwin/Documents/Projecten/Collections/public - + AllowOverride All diff --git a/public/index.php b/public/index.php index 4436344..ad9b7c7 100755 --- a/public/index.php +++ b/public/index.php @@ -106,27 +106,38 @@ $router->addRoute('GET', '/api/tree', function() { if ($depth > 5) return ''; $html = ''; foreach ($nodes as $node) { - $html .= '
  • '; + $html .= ''; + $html .= $indent . '├── '; + $html .= ' '; + $html .= ''; + $html .= htmlspecialchars($node['name']); $html .= ''; + $html .= ''; // Add items as sub-items if (!empty($node['items'])) { - $html .= ''; } // Add subcategories if (!empty($node['children'])) { - $html .= '