Commit c6860a58 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix style issue for rubocop

parent d5437c48
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment