Skip to content

Commit

Permalink
Merge pull request #224 from nextcloud/feat/support-nc29
Browse files Browse the repository at this point in the history
feat: Support Nextcloud 29
  • Loading branch information
skjnldsv authored Mar 5, 2024
2 parents 3e2a694 + 5d6b51c commit 5370cda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
6 changes: 3 additions & 3 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<summary>File link share download limit</summary>

<description>Allow to limit the number of downloads for link shares</description>
<version>1.1.0</version>
<version>2.0.0</version>
<licence>agpl</licence>
<author mail="[email protected]">John Molakvoæ</author>

Expand All @@ -15,8 +15,8 @@
<website>https://github.com/nextcloud/files_downloadlimit</website>
<bugs>https://github.com/nextcloud/files_downloadlimit/issues</bugs>
<repository type="git">https://github.com/nextcloud/files_downloadlimit.git</repository>

<dependencies>
<nextcloud min-version="25" max-version="27" />
<nextcloud min-version="29" max-version="29" />
</dependencies>
</info>
10 changes: 7 additions & 3 deletions appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@
*
*/

$requirements = [
'version' => '1',
];

return [
'ocs' => [
['name' => 'api#getDownloadLimit', 'url' => '/{token}/limit', 'verb' => 'GET'],
['name' => 'api#setDownloadLimit', 'url' => '/{token}/limit', 'verb' => 'PUT'],
['name' => 'api#removeDownloadLimit', 'url' => '/{token}/limit', 'verb' => 'DELETE'],
['name' => 'Api#getDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'GET', 'requirements' => $requirements],
['name' => 'Api#setDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'PUT', 'requirements' => $requirements],
['name' => 'Api#removeDownloadLimit', 'url' => '/api/v{version}/{token}/limit', 'verb' => 'DELETE', 'requirements' => $requirements],
]
];

0 comments on commit 5370cda

Please sign in to comment.