Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
50891701
Commit
50891701
authored
Oct 11, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move 'groups/*id' routes before 'groups/*group_id' routes
parent
e5fe49ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
config/routes/group.rb
config/routes/group.rb
+12
-12
No files found.
config/routes/group.rb
View file @
50891701
...
...
@@ -2,6 +2,18 @@ require 'constraints/group_url_constrainer'
resources
:groups
,
only:
[
:index
,
:new
,
:create
]
scope
(
path:
'groups/*id'
,
controller: :groups
,
constraints:
{
id:
Gitlab
::
PathRegex
.
full_namespace_route_regex
,
format:
/(html|json|atom)/
})
do
get
:edit
,
as: :edit_group
get
:issues
,
as: :issues_group
get
:merge_requests
,
as: :merge_requests_group
get
:projects
,
as: :projects_group
get
:activity
,
as: :activity_group
get
:subgroups
,
as: :subgroups_group
get
'/'
,
action: :show
,
as: :group_canonical
end
scope
(
path:
'groups/*group_id'
,
module: :groups
,
as: :group
,
...
...
@@ -70,18 +82,6 @@ scope(path: 'groups/*group_id',
get
:boards
,
to:
redirect
(
'/groups/%{group_id}/-/boards'
)
end
scope
(
path:
'groups/*id'
,
controller: :groups
,
constraints:
{
id:
Gitlab
::
PathRegex
.
full_namespace_route_regex
,
format:
/(html|json|atom)/
})
do
get
:edit
,
as: :edit_group
get
:issues
,
as: :issues_group
get
:merge_requests
,
as: :merge_requests_group
get
:projects
,
as: :projects_group
get
:activity
,
as: :activity_group
get
:subgroups
,
as: :subgroups_group
get
'/'
,
action: :show
,
as: :group_canonical
end
constraints
(
GroupUrlConstrainer
.
new
)
do
scope
(
path:
'*id'
,
as: :group
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment