mirror of
https://github.com/nextcloud/passman.git
synced 2025-09-16 18:04:37 +08:00
Use ApiController
This commit is contained in:
parent
514694d4c7
commit
aa6d91136a
6 changed files with 19 additions and 12 deletions
|
@ -12,7 +12,7 @@
|
|||
namespace OCA\Passman\AppInfo;
|
||||
|
||||
use OCP\AppFramework\App;
|
||||
|
||||
use OCP\Util;
|
||||
require_once __DIR__ . '/autoload.php';
|
||||
|
||||
$app = new App('passman');
|
||||
|
@ -40,4 +40,11 @@ $container->query('OCP\INavigationManager')->add(function () use ($container) {
|
|||
// navigation or on the settings page of your app
|
||||
'name' => $l10n->t('Passwords'),
|
||||
];
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* Loading translations
|
||||
*
|
||||
* The string has to match the app's folder name
|
||||
*/
|
||||
Util::addTranslations('passman');
|
|
@ -14,9 +14,9 @@ namespace OCA\Passman\Controller;
|
|||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\ApiController;
|
||||
|
||||
class CredentialController extends Controller {
|
||||
class CredentialController extends ApiController {
|
||||
|
||||
|
||||
private $userId;
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace OCA\Passman\Controller;
|
|||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\ApiController;
|
||||
|
||||
class FileController extends Controller {
|
||||
class FileController extends ApiController {
|
||||
|
||||
|
||||
private $userId;
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace OCA\Passman\Controller;
|
|||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\ApiController;
|
||||
|
||||
class PageController extends Controller {
|
||||
class PageController extends ApiController {
|
||||
|
||||
|
||||
private $userId;
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace OCA\Passman\Controller;
|
|||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\ApiController;
|
||||
|
||||
class RevisionController extends Controller {
|
||||
class RevisionController extends ApiController {
|
||||
|
||||
|
||||
private $userId;
|
||||
|
|
|
@ -14,9 +14,9 @@ namespace OCA\Passman\Controller;
|
|||
use OCP\IRequest;
|
||||
use OCP\AppFramework\Http\TemplateResponse;
|
||||
use OCP\AppFramework\Http\DataResponse;
|
||||
use OCP\AppFramework\Controller;
|
||||
use OCP\AppFramework\ApiController;
|
||||
|
||||
class VaultController extends Controller {
|
||||
class VaultController extends ApiController {
|
||||
|
||||
|
||||
private $userId;
|
||||
|
|
Loading…
Add table
Reference in a new issue