mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
SelfServiceController: no non-api requests
This commit is contained in:
parent
ad791918bc
commit
42723ff534
@ -36,7 +36,11 @@ class SelfServiceController extends ActionController
|
||||
|
||||
public function apiVersionAction()
|
||||
{
|
||||
$this->sendPowerShellResponse('1.4.0');
|
||||
if ($this->getRequest()->isApiRequest()) {
|
||||
$this->sendPowerShellResponse('1.4.0');
|
||||
} else {
|
||||
throw new NotFoundError('Not found');
|
||||
}
|
||||
}
|
||||
|
||||
public function registerHostAction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user