diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2017-07-25 23:25:23 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-08-10 14:49:09 +0300 |
commit | c9d2e31d527190660c51a75741747178f029091c (patch) | |
tree | 71aad956d8da297a96861bd9ad685f6250bb7d95 /apps/files_sharing/appinfo | |
parent | 8a539ec0f6dc1650902a9340197d62688164d462 (diff) |
Remove old code + add Middleware
* Add proper middleware for shareinfo
* Remove old shareinfo routes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing/appinfo')
-rw-r--r-- | apps/files_sharing/appinfo/routes.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/files_sharing/appinfo/routes.php b/apps/files_sharing/appinfo/routes.php index 104c4167e84..310b1c46eb6 100644 --- a/apps/files_sharing/appinfo/routes.php +++ b/apps/files_sharing/appinfo/routes.php @@ -26,8 +26,7 @@ * */ -$application = new \OCA\Files_Sharing\AppInfo\Application(); -$application->registerRoutes($this, [ +return [ 'resources' => [ 'ExternalShares' => ['url' => '/api/externalShares'], ], @@ -126,8 +125,4 @@ $application->registerRoutes($this, [ 'verb' => 'DELETE', ], ], -]); - -/** @var $this \OCP\Route\IRouter */ -$this->create('sharing_external_shareinfo', '/shareinfo3') - ->actionInclude('files_sharing/ajax/shareinfo.php'); +]; |