summaryrefslogtreecommitdiffstats
path: root/application/controllers/api/v1/user.php
blob: 4c2e5345d483e6693f740ad8a100d78e0d11a9c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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()));
	}
	
	public function create_apikey()
	{
		// TODO: implement
	}
}