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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
7658f8c1
Commit
7658f8c1
authored
Jan 23, 2013
by
Andrey Kumanyaev
Committed by
Dmitriy Zaporozhets
Jan 24, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update routes
parent
7534154b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
20 deletions
+24
-20
config/routes.rb
config/routes.rb
+24
-20
No files found.
config/routes.rb
View file @
7658f8c1
...
@@ -56,6 +56,7 @@ Gitlab::Application.routes.draw do
...
@@ -56,6 +56,7 @@ Gitlab::Application.routes.draw do
put
:unblock
put
:unblock
end
end
end
end
resources
:groups
,
constraints:
{
id:
/[^\/]+/
}
do
resources
:groups
,
constraints:
{
id:
/[^\/]+/
}
do
member
do
member
do
put
:project_update
put
:project_update
...
@@ -63,26 +64,31 @@ Gitlab::Application.routes.draw do
...
@@ -63,26 +64,31 @@ Gitlab::Application.routes.draw do
delete
:remove_project
delete
:remove_project
end
end
end
end
resources
:projects
,
constraints:
{
id:
/[a-zA-Z.\/0-9_\-]+/
},
except:
[
:new
,
:create
]
do
member
do
resources
:teams
,
constraints:
{
id:
/[^\/]+/
}
do
get
:team
put
:team_update
end
scope
module: :projects
do
resources
:members
,
only:
[
:edit
,
:update
,
:destroy
]
end
end
resources
:teams
do
#, constraints: { id: /[^\/]+/ } do end
scope
module: :teams
do
scope
module: :teams
do
resources
:members
,
only:
[
:edit
,
:update
,
:destroy
,
:new
,
:create
]
resources
:members
,
only:
[
:edit
,
:update
,
:destroy
,
:new
,
:create
]
resources
:projects
,
only:
[
:edit
,
:update
,
:destroy
,
:new
,
:create
]
resources
:projects
,
only:
[
:edit
,
:update
,
:destroy
,
:new
,
:create
],
constraints:
{
id:
/[a-zA-Z.\/0-9_\-]+/
}
end
end
end
end
resources
:hooks
,
only:
[
:index
,
:create
,
:destroy
]
do
resources
:hooks
,
only:
[
:index
,
:create
,
:destroy
]
do
get
:test
get
:test
end
end
resource
:logs
,
only:
[
:show
]
resource
:logs
,
only:
[
:show
]
resource
:resque
,
controller:
'resque'
,
only:
[
:show
]
resource
:resque
,
controller:
'resque'
,
only:
[
:show
]
resources
:projects
,
constraints:
{
id:
/[a-zA-Z.\/0-9_\-]+/
},
except:
[
:new
,
:create
]
do
member
do
get
:team
put
:team_update
end
scope
module: :projects
,
constraints:
{
id:
/[^\/]+/
}
do
resources
:members
,
only:
[
:edit
,
:update
,
:destroy
]
end
end
root
to:
"dashboard#index"
root
to:
"dashboard#index"
end
end
...
@@ -116,7 +122,6 @@ Gitlab::Application.routes.draw do
...
@@ -116,7 +122,6 @@ Gitlab::Application.routes.draw do
get
"dashboard/issues"
=>
"dashboard#issues"
get
"dashboard/issues"
=>
"dashboard#issues"
get
"dashboard/merge_requests"
=>
"dashboard#merge_requests"
get
"dashboard/merge_requests"
=>
"dashboard#merge_requests"
#
#
# Groups Area
# Groups Area
#
#
...
@@ -130,19 +135,18 @@ Gitlab::Application.routes.draw do
...
@@ -130,19 +135,18 @@ Gitlab::Application.routes.draw do
end
end
end
end
resources
:teams
do
#
# Teams Area
#
resources
:teams
,
constraints:
{
id:
/[^\/]+/
}
do
member
do
member
do
get
:issues
get
:issues
get
:merge_requests
get
:merge_requests
get
:search
get
:search
post
:delegate_projects
delete
:relegate_project
put
:update_access
end
end
scope
module: :teams
do
scope
module: :teams
do
resources
:members
resources
:members
,
only:
[
:index
,
:new
,
:create
,
:edit
,
:update
,
:destroy
]
resources
:projects
,
only:
[
:index
,
:show
]
do
resources
:projects
,
only:
[
:index
,
:new
,
:create
,
:edit
,
:update
,
:destroy
],
constraints:
{
id:
/[a-zA-Z.0-9_\-\/]+/
}
end
end
end
collection
do
collection
do
get
:search
get
:search
...
...
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