-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.php
More file actions
44 lines (39 loc) · 1.16 KB
/
run.php
File metadata and controls
44 lines (39 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
// SPDX-FileCopyrightText: 2024 Icinga GmbH <https://icinga.com>
// SPDX-License-Identifier: GPL-3.0-or-later
/** @var \Icinga\Application\Modules\Module $this */
if ($this::exists('icingadb')) {
$this->provideHook('Notifications/ObjectsRenderer');
}
$this->provideHook('authentication', 'SessionStorage', true);
$this->addRoute(
'static-file',
new Zend_Controller_Router_Route_Regex(
'notifications-(.[^.]*)(\..*)',
[
'controller' => 'daemon',
'action' => 'script',
'module' => 'notifications'
],
[
1 => 'file',
2 => 'extension'
]
)
);
$this->addRoute('notifications/api-plural', new Zend_Controller_Router_Route(
'notifications/api/:version/:endpoint',
[
'module' => 'notifications',
'controller' => 'api',
'action' => 'index'
]
));
$this->addRoute('notifications/api-single', new Zend_Controller_Router_Route(
'notifications/api/:version/:endpoint/:identifier',
[
'module' => 'notifications',
'controller' => 'api',
'action' => 'index'
]
));