mirror of https://github.com/MISP/MISP
parent
1d4e07d965
commit
7f3996f43b
|
@ -1 +1 @@
|
|||
{"major":2, "minor":3, "hotfix":128}
|
||||
{"major":2, "minor":3, "hotfix":129}
|
|
@ -668,4 +668,11 @@ class ServersController extends AppController {
|
|||
}
|
||||
$this->redirect('/servers/serverSettings/diagnostics');
|
||||
}
|
||||
|
||||
public function getVersion() {
|
||||
if (!$this->userRole['perm_auth']) throw new MethodNotAllowedException('This action requires API access.');
|
||||
$versionArray = $this->Server->checkMISPVersion();
|
||||
$this->set('response', array('version' => $versionArray['major'] . '.' . $versionArray['minor'] . '.' . $versionArray['hotfix']));
|
||||
$this->set('_serialize', 'response');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue