Return-Path: X-Original-To: apmail-airavata-commits-archive@www.apache.org Delivered-To: apmail-airavata-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0AB5618F99 for ; Mon, 11 Jan 2016 18:55:22 +0000 (UTC) Received: (qmail 21712 invoked by uid 500); 11 Jan 2016 18:55:22 -0000 Delivered-To: apmail-airavata-commits-archive@airavata.apache.org Received: (qmail 21650 invoked by uid 500); 11 Jan 2016 18:55:21 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 21641 invoked by uid 99); 11 Jan 2016 18:55:21 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2016 18:55:21 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id C4E30E0A4E; Mon, 11 Jan 2016 18:55:21 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: scnakandala@apache.org To: commits@airavata.apache.org Message-Id: <977591343ec24f67a54c90ee849ad584@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: airavata-php-gateway git commit: fixing routing issue Date: Mon, 11 Jan 2016 18:55:21 +0000 (UTC) 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 Authored: Mon Jan 11 13:55:18 2016 -0500 Committer: scnakandala 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); }); /*