Skip to content
This repository was archived by the owner on Apr 12, 2020. It is now read-only.

Commit 3982b26

Browse files
committed
Made url simpler
1 parent 77180f6 commit 3982b26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Gitonomy/Browser/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function registerRouting()
9393

9494
/** Browse repository */
9595
$this
96-
->get('/{repository}/browse/tree/{reference}/path/{path}', 'controller.main:treeAction')
96+
->get('/{repository}/tree/{reference}/path/{path}', 'controller.main:treeAction')
9797
->bind('tree')
9898
->value('reference', 'master')
9999
->assert('reference', '.*')

tests/Gitonomy/Browser/Tests/Functionnal/ControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ public function getPage200Tests()
4545
array('/browser'),
4646
array('/browser/refs/heads/master'),
4747
array('/browser/commit/3c05a60d9522eb438d7be74f4ae51b4bcd0f697f'),
48-
array('/browser/browse/tree/master/path'),
49-
array('/browser/browse/tree/3c05a60d9522eb438d7be74f4ae51b4bcd0f697f/path/composer.json'),
48+
array('/browser/tree/master/path'),
49+
array('/browser/tree/3c05a60d9522eb438d7be74f4ae51b4bcd0f697f/path/composer.json'),
5050
);
5151
}
5252

0 commit comments

Comments
 (0)