chg: [ui:api] Moved API navigation link into admin section and created breadcrumb config

pull/93/head
Sami Mokaddem 2022-01-20 09:32:39 +01:00
parent 2e0051401f
commit a60ca95120
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 21 additions and 5 deletions

View File

@ -0,0 +1,16 @@
<?php
namespace BreadcrumbNavigation;
require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'base.php');
class ApiNavigation extends BaseNavigation
{
function addRoutes()
{
$this->bcf->addRoute('Api', 'index', [
'label' => __('API'),
'url' => '/api/index',
'icon' => 'code'
]);
}
}

View File

@ -51,11 +51,6 @@ class Sidemenu {
'icon' => $this->iconTable['Broods'],
'url' => '/broods/index',
],
'API' => [
'label' => __('API'),
'icon' => $this->iconTable['API'],
'url' => '/api/index',
],
],
__('Administration') => [
'Roles' => [
@ -130,6 +125,11 @@ class Sidemenu {
],
]
],
'API' => [
'label' => __('API'),
'icon' => $this->iconTable['API'],
'url' => '/api/index',
],
],
'Open' => [
'Organisations' => [