summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v1/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/api/v1/user.php')
-rw-r--r--application/controllers/api/v1/user.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/application/controllers/api/v1/user.php b/application/controllers/api/v1/user.php
index 39c833d86..e49b7c657 100644
--- a/application/controllers/api/v1/user.php
+++ b/application/controllers/api/v1/user.php
@@ -19,7 +19,7 @@ class user extends \controllers\api\api_controller {
public function apikeys()
{
$this->muser->require_access("full");
- return send_json_reply(\service\user::apikeys($this->muser->get_userid()));
+ return \service\user::apikeys($this->muser->get_userid());
}
public function create_apikey()
@@ -32,8 +32,8 @@ class user extends \controllers\api\api_controller {
$key = \service\user::create_apikey($userid, $comment, $access_level);
- return send_json_reply(array(
+ return array(
"new_key" => $key,
- ));
+ );
}
}