mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-08 20:46:12 +08:00
Merge branch 'appVersion'
This commit is contained in:
commit
e402602256
2 changed files with 6 additions and 3 deletions
|
@ -65,6 +65,7 @@ return [
|
||||||
['name' => 'share#getItemAcl', 'url' => '/api/v2/sharing/credential/{item_guid}/acl', 'verb' => 'GET'],
|
['name' => 'share#getItemAcl', 'url' => '/api/v2/sharing/credential/{item_guid}/acl', 'verb' => 'GET'],
|
||||||
['name' => 'share#getFile', 'url' => '/api/v2/sharing/credential/{item_guid}/file/{file_guid}', 'verb' => 'GET'],
|
['name' => 'share#getFile', 'url' => '/api/v2/sharing/credential/{item_guid}/file/{file_guid}', 'verb' => 'GET'],
|
||||||
['name' => 'share#updateSharedCredentialACL', 'url' => '/api/v2/sharing/credential/{item_guid}/acl', 'verb' => 'PATCH'],
|
['name' => 'share#updateSharedCredentialACL', 'url' => '/api/v2/sharing/credential/{item_guid}/acl', 'verb' => 'PATCH'],
|
||||||
|
['name' => 'internal#getAppVersion', 'url' => '/api/v2/version', 'verb' => 'GET'],
|
||||||
|
|
||||||
|
|
||||||
//Translations
|
//Translations
|
||||||
|
|
|
@ -15,7 +15,7 @@ use OCP\IRequest;
|
||||||
use OCP\AppFramework\Http\JSONResponse;
|
use OCP\AppFramework\Http\JSONResponse;
|
||||||
use OCP\AppFramework\ApiController;
|
use OCP\AppFramework\ApiController;
|
||||||
use OCA\Passman\Service\CredentialService;
|
use OCA\Passman\Service\CredentialService;
|
||||||
|
use \OCP\App;
|
||||||
|
|
||||||
class InternalController extends ApiController {
|
class InternalController extends ApiController {
|
||||||
private $userId;
|
private $userId;
|
||||||
|
@ -65,9 +65,11 @@ class InternalController extends ApiController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
|
* @NoCSRFRequired
|
||||||
*/
|
*/
|
||||||
public function getAppVersion() {
|
public function getAppVersion() {
|
||||||
return new JSONResponse(array('version' => '1.0.2.25'));
|
$AppInstance = new App();
|
||||||
|
return new JSONResponse(array('version' => $AppInstance->getAppInfo("passman")["version"]));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue