diff options
author | Joas Schilling <coding@schilljs.com> | 2020-03-23 16:33:11 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-04-18 11:21:28 +0200 |
commit | 3f8168b6e5c0fc14709b713d9ca4943f9df70273 (patch) | |
tree | 4f8e0a487f6a1c50c041ac96da2f024b86ab1532 /apps/files/appinfo | |
parent | 64196ddd19684b6a218428eeb6ee370d0514b68c (diff) | |
download | nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.tar.gz nextcloud-server-3f8168b6e5c0fc14709b713d9ca4943f9df70273.zip |
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/appinfo')
-rw-r--r-- | apps/files/appinfo/routes.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/files/appinfo/routes.php b/apps/files/appinfo/routes.php index 825249b0874..01d1e14054a 100644 --- a/apps/files/appinfo/routes.php +++ b/apps/files/appinfo/routes.php @@ -42,6 +42,13 @@ $application->registerRoutes( [ 'routes' => [ [ + 'name' => 'View#showFile', + 'url' => '/f/{fileid}', + 'verb' => 'GET', + 'root' => '', + ], + + [ 'name' => 'API#getThumbnail', 'url' => '/api/v1/thumbnail/{x}/{y}/{file}', 'verb' => 'GET', |