diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-23 18:33:11 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 12:21:28 +0300 |
commit | 3f8168b6e5c0fc14709b713d9ca4943f9df70273 (patch) | |
tree | 4f8e0a487f6a1c50c041ac96da2f024b86ab1532 /apps/files_sharing/appinfo | |
parent | 64196ddd19684b6a218428eeb6ee370d0514b68c (diff) |
Allow some apps to have root URLs in their own routing file
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index 1346e0c6899..a4edada738c 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -31,6 +31,37 @@ return [ ], 'routes' => [ [ + 'name' => 'Share#showShare', + 'url' => '/s/{token}', + 'verb' => 'GET', + 'root' => '', + ], + [ + 'name' => 'Share#showAuthenticate', + 'url' => '/s/{token}/authenticate/{redirect}', + 'verb' => 'GET', + 'root' => '', + ], + [ + 'name' => 'Share#authenticate', + 'url' => '/s/{token}/authenticate/{redirect}', + 'verb' => 'POST', + 'root' => '', + ], + [ + 'name' => 'Share#downloadShare', + 'url' => '/s/{token}/download', + 'verb' => 'GET', + 'root' => '', + ], + [ + 'name' => 'PublicPreview#directLink', + 'url' => '/s/{token}/preview', + 'verb' => 'GET', + 'root' => '', + ], + + [ 'name' => 'externalShares#testRemote', 'url' => '/testremote', 'verb' => 'GET' |