From 3f8168b6e5c0fc14709b713d9ca4943f9df70273 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 23 Mar 2020 16:33:11 +0100 Subject: Allow some apps to have root URLs in their own routing file Signed-off-by: Joas Schilling --- apps/files_sharing/appinfo/routes.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'apps/files_sharing/appinfo') 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 @@ -30,6 +30,37 @@ return [ 'ExternalShares' => ['url' => '/api/externalShares'], ], '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', -- cgit v1.2.3