airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [42/50] [abbrv] airavata-php-gateway git commit: fixing routing issue
Date Thu, 14 Jan 2016 15:43:38 GMT
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/develop
Commit: 91d7391a70308ac146c024807202d1aa23300491
Parents: 9b6f7f1
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon Jan 11 13:55:18 2016 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
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);
 });
 /*


Mime
View raw message