summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-01-11 23:35:46 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-01-16 17:38:38 +0100
commit0bed4fd5c9f67b60173df6638dc524d7b833c4e1 (patch)
tree69653ccdf9e9dc90e8a370cb6a9471792c1cba18 /application
parent01c881fd2c0f0c701a83e135f2142c9db3052422 (diff)
add some TODOs
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application')
-rw-r--r--application/controllers/api/v1/file.php3
-rw-r--r--application/controllers/api/v1/user.php5
-rw-r--r--application/service/files.php1
3 files changed, 8 insertions, 1 deletions
diff --git a/application/controllers/api/v1/file.php b/application/controllers/api/v1/file.php
index 515286462..56455c01e 100644
--- a/application/controllers/api/v1/file.php
+++ b/application/controllers/api/v1/file.php
@@ -50,6 +50,7 @@ class file extends \controllers\api\api_controller {
public function get_config()
{
+ // TODO: return more fields?
return send_json_reply(array(
"upload_max_size" => $this->config->item("upload_max_size"),
"max_files_per_request" => intval(ini_get("max_file_uploads")),
@@ -67,7 +68,7 @@ class file extends \controllers\api\api_controller {
{
$this->muser->require_access("apikey");
-
+ // TODO: implement
}
}
# vim: set noet:
diff --git a/application/controllers/api/v1/user.php b/application/controllers/api/v1/user.php
index 831fdb883..4c2e5345d 100644
--- a/application/controllers/api/v1/user.php
+++ b/application/controllers/api/v1/user.php
@@ -21,4 +21,9 @@ class user extends \controllers\api\api_controller {
$this->muser->require_access("full");
return send_json_reply(\service\user::apikeys($this->muser->get_userid()));
}
+
+ public function create_apikey()
+ {
+ // TODO: implement
+ }
}
diff --git a/application/service/files.php b/application/service/files.php
index 8d0760b87..8d8b1d01a 100644
--- a/application/service/files.php
+++ b/application/service/files.php
@@ -16,6 +16,7 @@ class files {
$CI =& get_instance();
$items = array();
+ // TODO: thumbnail urls where available
$fields = array("id", "filename", "mimetype", "date", "hash", "filesize");
$query = $CI->db->select(implode(',', $fields))
->from('files')