2012-09-29 00:19:37 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2012 Bart Visscher <bartv@thisnet.nl>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
* later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
$this->create('download', 'download{file}')
|
|
|
|
->requirements(array('file' => '.*'))
|
2013-02-10 17:42:23 +04:00
|
|
|
->actionInclude('files/download.php');
|
|
|
|
|
|
|
|
// Register with the capabilities API
|
|
|
|
OC_API::register('get', '/cloud/capabilities', array('OCA\Files\Capabilities', 'getCapabilities'), 'files', OC_API::USER_AUTH);
|