Repository: airavata-php-gateway Updated Branches: refs/heads/master 7b8cd1147 -> b0dc024bd
fixing cannot download input 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/b0dc024b Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/b0dc024b Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/b0dc024b Branch: refs/heads/master Commit: b0dc024bd81259bd3ca6d7c604768ab032e68793 Parents: 7b8cd11 Author: scnakandala <supun.nakand...@gmail.com> Authored: Tue Jan 12 08:45:55 2016 -0500 Committer: scnakandala <supun.nakand...@gmail.com> Committed: Tue Jan 12 08:45:55 2016 -0500 ---------------------------------------------------------------------- app/routes.php | 7 +++++++ 1 file changed, 7 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/b0dc024b/app/routes.php ---------------------------------------------------------------------- diff --git a/app/routes.php b/app/routes.php index c925610..c32dd48 100755 --- a/app/routes.php +++ b/app/routes.php @@ -93,6 +93,13 @@ Route::get("download/{exp_data_dir}/{exp_folder}/{exp_file}", function($exp_data . '/' . $exp_data_dir . "/" . $exp_folder . '/' . $exp_file; return Response::download( $downloadLink); }); + +Route::get("download/{exp_data_dir}/{exp_file}", function($exp_data_dir, $exp_file){ + $downloadLink = Config::get('pga_config.airavata')['experiment-data-absolute-path'] . '/' . Session::get('username') + . '/' . $exp_data_dir . '/' . $exp_file; + return Response::download( $downloadLink); +}); + /* * Compute Resources Routes */