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
a2fcdd3d
Commit
a2fcdd3d
authored
Feb 03, 2020
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move approver routes under - scope
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
7aff1f63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ee/config/routes/project.rb
ee/config/routes/project.rb
+4
-4
No files found.
ee/config/routes/project.rb
View file @
a2fcdd3d
...
...
@@ -84,6 +84,10 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace
:analytics
do
resources
:code_reviews
,
only:
[
:index
]
end
resources
:approvers
,
only: :destroy
resources
:approver_groups
,
only: :destroy
resources
:push_rules
,
constraints:
{
id:
/\d+/
},
only:
[
:update
]
end
# End of the /-/ scope.
...
...
@@ -127,10 +131,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
post
'/restore'
=>
'/projects#restore'
,
as: :restore
resources
:approvers
,
only: :destroy
resources
:approver_groups
,
only: :destroy
resources
:push_rules
,
constraints:
{
id:
/\d+/
},
only:
[
:update
]
resources
:pipelines
,
only:
[]
do
member
do
get
:security
...
...
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