From e4b7a3fe8b3de90a13d31eb2ea9a2185b2a6f861 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Sat, 7 Jul 2012 08:25:49 +0200 Subject: [PATCH] removed some / at the end of some URLs to be consistent with other URLs --- controllers/blobController.php | 2 +- controllers/commitController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/blobController.php b/controllers/blobController.php index 1a93711..7c6b06c 100644 --- a/controllers/blobController.php +++ b/controllers/blobController.php @@ -1,6 +1,6 @@ get('{repo}/blob/{branch}/{file}/', function($repo, $branch, $file) use($app) { +$app->get('{repo}/blob/{branch}/{file}', function($repo, $branch, $file) use($app) { $repository = $app['git']->getRepository($app['git.repos'] . $repo); $blob = $repository->getBlob("$branch:'$file'"); $breadcrumbs = $app['utils']->getBreadcrumbs($file); diff --git a/controllers/commitController.php b/controllers/commitController.php index dec6da1..e861e1d 100644 --- a/controllers/commitController.php +++ b/controllers/commitController.php @@ -41,7 +41,7 @@ $app->get('{repo}/commit/{commit}/', function($repo, $commit) use($app) { ->assert('commit', '[a-f0-9]+') ->bind('commit'); -$app->get('{repo}/blame/{branch}/{file}/', function($repo, $branch, $file) use($app) { +$app->get('{repo}/blame/{branch}/{file}', function($repo, $branch, $file) use($app) { $repository = $app['git']->getRepository($app['git.repos'] . $repo); $blames = $repository->getBlame("$branch -- $file");