mirror of https://github.com/MISP/MISP
chg: [navigation:noticelists] Added update route and update action
parent
a586607b7e
commit
4c3a4d353d
|
@ -5,4 +5,18 @@ require_once(APP . 'Controller' . DS . 'Component' . DS . 'Navigation' . DS . 'b
|
||||||
|
|
||||||
class NoticelistsNavigation extends BaseNavigation
|
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');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue