Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-03-31 21:17:31 +0300
committerOlivier Paroz <github@oparoz.com>2015-05-31 22:54:11 +0300
commit80c1016d8cd9bf2ab0e7e516f3074aea5c6a96a5 (patch)
tree8f70ad6e34d032db503765816010188c9316a466 /appinfo
parent686b2f7a74ef157c6fe707ac6ca102b1df566aa9 (diff)
Make requests based on the file ID instead of using the path
1st implementation (cherry picked from commit 844bd7b)
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/routes.php19
1 files changed, 4 insertions, 15 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index bf2d97d1..04d89771 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -96,14 +96,8 @@ return [
],
// Large preview of a file
[
- 'name' => 'preview#show_preview',
- 'url' => '/preview',
- 'verb' => 'GET'
- ],
- // Download the file
- [
- 'name' => 'preview#download_preview',
- 'url' => '/download',
+ 'name' => 'preview#get_preview',
+ 'url' => '/preview/{fileId}',
'verb' => 'GET'
],
/**
@@ -130,13 +124,8 @@ return [
'verb' => 'GET'
],
[
- 'name' => 'public_preview#show_preview',
- 'url' => '/preview.public',
- 'verb' => 'GET'
- ],
- [
- 'name' => 'public_preview#download_preview',
- 'url' => '/download.public',
+ 'name' => 'public_preview#get_preview',
+ 'url' => '/preview.public/{fileId}',
'verb' => 'GET'
],
// API, for later