diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-10-17 08:42:01 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-03 14:00:33 +0100 |
commit | 5d1108519030668cae45d8691b2de7e5629523dc (patch) | |
tree | 8e5c147843049972156de1a170d0ddc377f1e036 /apps/files_trashbin/appinfo | |
parent | d720a2fb5719122a0250d63c269380c6ba413755 (diff) | |
download | nextcloud-server-5d1108519030668cae45d8691b2de7e5629523dc.tar.gz nextcloud-server-5d1108519030668cae45d8691b2de7e5629523dc.zip |
Move over files_trashbin
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_trashbin/appinfo')
-rw-r--r-- | apps/files_trashbin/appinfo/routes.php | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/apps/files_trashbin/appinfo/routes.php b/apps/files_trashbin/appinfo/routes.php index 2f4988c9dcc..5241bec742e 100644 --- a/apps/files_trashbin/appinfo/routes.php +++ b/apps/files_trashbin/appinfo/routes.php @@ -1,6 +1,7 @@ <?php /** * @copyright Copyright (c) 2016, ownCloud, Inc. + * @copyright Copyright (c) 2016, Roeland Jago Douma <roeland@famdouma.nl> * * @author Lukas Reschke <lukas@statuscode.ch> * @author Roeland Jago Douma <roeland@famdouma.nl> @@ -25,9 +26,16 @@ namespace OCA\Files_Trashbin\AppInfo; $application = new Application(); +$application->registerRoutes($this, [ + 'routes' => [ + [ + 'name' => 'Preview#getPreview', + 'url' => '/ajax/preview.php', + 'verb' => 'GET', + ], + ], +]); -$this->create('core_ajax_trashbin_preview', 'ajax/preview.php') - ->actionInclude('files_trashbin/ajax/preview.php'); $this->create('files_trashbin_ajax_delete', 'ajax/delete.php') ->actionInclude('files_trashbin/ajax/delete.php'); $this->create('files_trashbin_ajax_isEmpty', 'ajax/isEmpty.php') |