chg: [navigation:noticelists] Added update route and update action

pull/9248/head
Sami Mokaddem 2023-08-11 10:23:22 +02:00
parent a586607b7e
commit 4c3a4d353d
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 14 additions and 0 deletions

View File

@ -5,4 +5,18 @@ require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'b
class NoticelistsNavigation extends BaseNavigation
{
function addRoutes()
{
$this->bcf->addRoute('Noticelists', 'update', [
'label' => __('Update Noticelists'),
'url' => '/noticelists/update',
'icon' => 'circle-up',
'isPOST' => true,
]);
}
public function addActions()
{
$this->bcf->addAction('Noticelists', 'index', 'Noticelists', 'update');
}
}