diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-01-11 01:40:07 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-01-16 17:38:38 +0100 |
commit | 8fd7c6c2ab80240ab1d163c9a4134822c7524144 (patch) | |
tree | fc6c9a472e6374a7b4ac2d57e147a82542d250ea /application/controllers/api/v1 | |
parent | 32e68c2dfff62cbdd82950b4b4e20a3c895dfb1f (diff) |
add initial user api
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/api/v1')
-rw-r--r-- | application/controllers/api/v1/user.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/application/controllers/api/v1/user.php b/application/controllers/api/v1/user.php new file mode 100644 index 000000000..831fdb883 --- /dev/null +++ b/application/controllers/api/v1/user.php @@ -0,0 +1,24 @@ +<?php +/* + * Copyright 2014 Florian "Bluewind" Pritz <bluewind@server-speed.net> + * + * Licensed under AGPLv3 + * (see COPYING for full license text) + * + */ +namespace controllers\api\v1; + +class user extends \controllers\api\api_controller { + public function __construct() + { + parent::__construct(); + + $this->load->model('muser'); + } + + public function apikeys() + { + $this->muser->require_access("full"); + return send_json_reply(\service\user::apikeys($this->muser->get_userid())); + } +} |