diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-02-03 11:12:01 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-02-03 11:12:01 +0100 |
commit | 6816970229c6d0bd46ba46ecd70199c0687952da (patch) | |
tree | 93b24ece3ef8307070a16052cb7b24350696cd81 /application/controllers/api/v1/user.php | |
parent | e2c2740365b1f25beca1e174c8c5bda2950b7466 (diff) |
api: handle json reply in api controller
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/v1/user.php')
-rw-r--r-- | application/controllers/api/v1/user.php | 6 |
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, - )); + ); } } |