Skip to content

Commit

Permalink
Merge pull request owncloud#15915 from owncloud/fix-sharing
Browse files Browse the repository at this point in the history
Fix routes
  • Loading branch information
DeepDiver1975 authored and mmattel committed May 22, 2015
2 parents f47250f + 6e7e078 commit e8fe545
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 e8fe545

Please sign in to comment.