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");