SelfServiceController: no non-api requests

This commit is contained in:
Thomas Gelf 2017-07-21 17:28:55 +02:00
parent ad791918bc
commit 42723ff534
1 changed files with 5 additions and 1 deletions

View File

@ -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()