summaryrefslogtreecommitdiffstats
path: root/lib/private/ocsclient.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-06-25 11:43:55 +0200
committerMorris Jobke <hey@morrisjobke.de>2015-06-25 14:13:49 +0200
commitf63915d0c8b28ed507f0db6e11ef50e9a0bd39f4 (patch)
tree411739523aed92226927f7aa5d90e69656af693e /lib/private/ocsclient.php
parentcdb0e62e9b7a537f79f8674bc641fb88ec30c2be (diff)
downloadnextcloud-server-f63915d0c8b28ed507f0db6e11ef50e9a0bd39f4.tar.gz
nextcloud-server-f63915d0c8b28ed507f0db6e11ef50e9a0bd39f4.zip
update license headers and authors
Diffstat (limited to 'lib/private/ocsclient.php')
-rw-r--r--lib/private/ocsclient.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ocsclient.php b/lib/private/ocsclient.php
index f10a97428e2..2868b407000 100644
--- a/lib/private/ocsclient.php
+++ b/lib/private/ocsclient.php
@@ -7,11 +7,11 @@
* @author Jörn Friedrich Dreyer <jfd@butonic.de>
* @author Kamil Domanski <kdomanski@kdemail.net>
* @author Lukas Reschke <lukas@owncloud.com>
+ * @author Martin Mattel <martin.mattel@diemattels.at>
* @author Morris Jobke <hey@morrisjobke.de>
* @author Robin McCorkell <rmccorkell@karoshi.org.uk>
* @author Sam Tuke <mail@samtuke.com>
* @author Thomas Müller <thomas.mueller@tmit.eu>
- * @author Vincent Petry <pvince81@owncloud.com>
*
* @copyright Copyright (c) 2015, ownCloud, Inc.
* @license AGPL-3.0
: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
<?php
$this->create('core_ajax_public_preview', '/publicpreview.png')->action(
function() {
	require_once __DIR__ . '/../ajax/publicpreview.php';
});

// OCS API

//TODO: SET: mail notification, waiting for PR #4689 to be accepted

OC_API::register('get',
		'/apps/files_sharing/api/shares',
		array('\OCA\Files\Share\Api', 'getAllShare'),
		'files_sharing');

OC_API::register('post',
		'/apps/files_sharing/api/shares',
		array('\OCA\Files\Share\Api', 'createShare'),
		'files_sharing');

OC_API::register('get',
		'/apps/files_sharing/api/shares/{path}',
		array('\OCA\Files\Share\Api', 'getShare'),
		'files_sharing',
		OC_API::USER_AUTH,
		array('path' => ''),
		array('path' => '.+')); //allow slashes in parameter path

OC_API::register('put',
		'/apps/files_sharing/api/shares/{path}',
		array('\OCA\Files\Share\Api', 'updateShare'),
		'files_sharing',
		OC_API::USER_AUTH,
		array('path' => ''),
		array('path' => '.+'));

OC_API::register('delete',
		'/apps/files_sharing/api/shares/{path}',
		array('\OCA\Files\Share\Api', 'deleteShare'),
		'files_sharing',
		OC_API::USER_AUTH,
		array('path' => ''),
		array('path' => '.+'));