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…
Reference in New Issue