Skip to content

Commit

Permalink
Fix routes
Browse files Browse the repository at this point in the history
Fixes public sharing as reported on owncloud#15913
  • Loading branch information
LukasReschke authored and mmattel committed May 22, 2015
1 parent f47250f commit 6e7e078
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@

// Sharing routes
$this->create('files_sharing.sharecontroller.showShare', '/s/{token}')->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
$app->dispatch('ShareController', 'showShare');
});
$this->create('files_sharing.sharecontroller.authenticate', '/s/{token}/authenticate')->post()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
$app->dispatch('ShareController', 'authenticate');
});
$this->create('files_sharing.sharecontroller.showAuthenticate', '/s/{token}/authenticate')->get()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
$app->dispatch('ShareController', 'showAuthenticate');
});
$this->create('files_sharing.sharecontroller.downloadShare', '/s/{token}/download')->get()->action(function($urlParams) {
$app = new \OCA\Files_Sharing\Application($urlParams);
$app = new \OCA\Files_Sharing\AppInfo\Application($urlParams);
$app->dispatch('ShareController', 'downloadShare');
});

Expand Down

0 comments on commit 6e7e078

Please sign in to comment.