Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -30,13 +30,15 @@ class _hello extends \IPS\Api\Controller
|
||||
* @apiresponse string communityName The name of the community
|
||||
* @apiresponse string communityUrl The community URL
|
||||
* @apiresponse string ipsVersion The Invision Community version number
|
||||
* @apiresponse array applications The installed IPS Applications
|
||||
*/
|
||||
public function GETindex()
|
||||
{
|
||||
return new \IPS\Api\Response( 200, array(
|
||||
'communityName' => \IPS\Settings::i()->board_name,
|
||||
'communityUrl' => \IPS\Settings::i()->base_url,
|
||||
'ipsVersion' => \IPS\Application::load('core')->version
|
||||
) );
|
||||
'ipsApplications' => \IPS\Application::load('core')->version,
|
||||
'ipsApplications' => array_filter( array_keys( \IPS\Application::applications() ), function( $k ) { return \in_array( $k, \IPS\IPS::$ipsApps ); } )
|
||||
) );
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user