Repository: airavata-php-gateway Updated Branches: refs/heads/master 9b6f7f1ed -> 91d7391a7
fixing routing issue Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/91d7391a Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/91d7391a Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/91d7391a Branch: refs/heads/master Commit: 91d7391a70308ac146c024807202d1aa23300491 Parents: 9b6f7f1 Author: scnakandala <[email protected]> Authored: Mon Jan 11 13:55:18 2016 -0500 Committer: scnakandala <[email protected]> Committed: Mon Jan 11 13:55:18 2016 -0500 ---------------------------------------------------------------------- app/routes.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/91d7391a/app/routes.php ---------------------------------------------------------------------- diff --git a/app/routes.php b/app/routes.php index 0309614..c925610 100755 --- a/app/routes.php +++ b/app/routes.php @@ -88,8 +88,9 @@ Route::get("experiment/browse", "ExperimentController@browseView"); Route::post("experiment/browse", "ExperimentController@browseView"); -Route::get("download/{exp_folder}/{exp_file}", function( $exp_folder, $exp_file){ - $downloadLink = Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . Session::get('username') . '/' . $exp_folder . '/' . $exp_file; +Route::get("download/{exp_data_dir}/{exp_folder}/{exp_file}", function($exp_data_dir, $exp_folder, $exp_file){ + $downloadLink = Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . Session::get('username') + . '/' . $exp_data_dir . "/" . $exp_folder . '/' . $exp_file; return Response::download( $downloadLink); }); /*
