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
Léo-Paul Géneau
gitlab-ce
Commits
c6860a58
Commit
c6860a58
authored
Feb 23, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix style issue for rubocop
parent
d5437c48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
config/routes.rb
config/routes.rb
+12
-8
No files found.
config/routes.rb
View file @
c6860a58
...
...
@@ -81,13 +81,13 @@ Gitlab::Application.routes.draw do
scope
path: :uploads
do
# Note attachments and User/Group/Project avatars
get
":model/:mounted_as/:id/:filename"
,
to:
"uploads#show"
,
get
":model/:mounted_as/:id/:filename"
,
to:
"uploads#show"
,
constraints:
{
model:
/note|user|group|project/
,
mounted_as:
/avatar|attachment/
,
filename:
/.+/
}
# Project markdown uploads
get
":id/:secret/:filename"
,
to:
"projects/uploads#show"
,
get
":id/:secret/:filename"
,
to:
"projects/uploads#show"
,
constraints:
{
id:
/[a-zA-Z.0-9_\-]+\/[a-zA-Z.0-9_\-]+/
,
filename:
/.+/
}
end
...
...
@@ -148,7 +148,8 @@ Gitlab::Application.routes.draw do
resources
:namespaces
,
path:
'/projects'
,
constraints:
{
id:
/[a-zA-Z.0-9_\-]+/
},
only:
[]
do
root
to:
'projects#index'
,
as: :projects
resources
(
:projects
,
path:
'/'
,
resources
(
:projects
,
path:
'/'
,
constraints:
{
id:
/[a-zA-Z.0-9_\-]+/
},
only:
[
:index
,
:show
])
do
root
to:
'projects#show'
...
...
@@ -268,12 +269,15 @@ Gitlab::Application.routes.draw do
post
'/preview/*id'
,
to:
'blob#preview'
,
constraints:
{
id:
/.+/
},
as:
'preview_blob'
scope
do
get
(
'/blob/*id/diff'
,
to:
'blob#diff'
,
get
(
'/blob/*id/diff'
,
to:
'blob#diff'
,
constraints:
{
id:
/.+/
,
format:
false
},
as: :blob_diff
)
get
(
'/blob/*id'
,
to:
'blob#show'
,
get
(
'/blob/*id'
,
to:
'blob#show'
,
constraints:
{
id:
/.+/
,
format:
false
},
as: :blob
)
delete
(
'/blob/*id'
,
to:
'blob#destroy'
,
delete
(
'/blob/*id'
,
to:
'blob#destroy'
,
constraints:
{
id:
/.+/
,
format:
false
})
end
...
...
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