From 514694d4c7888ed26476cee7585f13861360f32f Mon Sep 17 00:00:00 2001 From: brantje Date: Fri, 9 Sep 2016 17:41:02 +0200 Subject: [PATCH] Add parameters to controllers --- controller/credentialcontroller.php | 6 +++--- controller/filecontroller.php | 4 ++-- controller/revisioncontroller.php | 4 ++-- controller/vaultcontroller.php | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/controller/credentialcontroller.php b/controller/credentialcontroller.php index fc2324f5..24899845 100644 --- a/controller/credentialcontroller.php +++ b/controller/credentialcontroller.php @@ -36,21 +36,21 @@ class CredentialController extends Controller { /** * @NoAdminRequired */ - public function get() { + public function get($credential_id) { return; } /** * @NoAdminRequired */ - public function update() { + public function update($credential_id) { return; } /** * @NoAdminRequired */ - public function delete() { + public function delete($credential_id) { return; } } \ No newline at end of file diff --git a/controller/filecontroller.php b/controller/filecontroller.php index d42426b8..8d171c8c 100644 --- a/controller/filecontroller.php +++ b/controller/filecontroller.php @@ -30,7 +30,7 @@ class FileController extends Controller { /** * @NoAdminRequired */ - public function upload() { + public function upload($credential_id) { return; } @@ -38,7 +38,7 @@ class FileController extends Controller { /** * @NoAdminRequired */ - public function delete() { + public function delete($credential_id, $file_id) { return; } } \ No newline at end of file diff --git a/controller/revisioncontroller.php b/controller/revisioncontroller.php index 460da18a..fa553661 100644 --- a/controller/revisioncontroller.php +++ b/controller/revisioncontroller.php @@ -29,7 +29,7 @@ class RevisionController extends Controller { /** * @NoAdminRequired */ - public function get() { + public function get($credential_id) { return; } @@ -37,7 +37,7 @@ class RevisionController extends Controller { /** * @NoAdminRequired */ - public function delete() { + public function delete($credential_id, $revision_id) { return; } } \ No newline at end of file diff --git a/controller/vaultcontroller.php b/controller/vaultcontroller.php index 741e38ba..ea58254b 100644 --- a/controller/vaultcontroller.php +++ b/controller/vaultcontroller.php @@ -36,21 +36,21 @@ class VaultController extends Controller { /** * @NoAdminRequired */ - public function get() { + public function get($vault_id) { return; } /** * @NoAdminRequired */ - public function update() { + public function update($vault_id) { return; } /** * @NoAdminRequired */ - public function delete() { + public function delete($vault_id) { return; } } \ No newline at end of file