diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:02 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-13 12:40:02 +0000 |
commit | c4ee00ca65638ef7a42fde067481e69b4744eaa2 (patch) | |
tree | 9c8d9520e0f12c5ae3f1bce989a224a899361f79 /config/routes.rb | |
parent | f146227c3a60a407b58f307a29cb035800297f08 (diff) | |
download | redmine-c4ee00ca65638ef7a42fde067481e69b4744eaa2.tar.gz redmine-c4ee00ca65638ef7a42fde067481e69b4744eaa2.zip |
shorten long line of config/routes.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20355 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/routes.rb')
-rw-r--r-- | config/routes.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5884aa49f..acc3ca465 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -67,9 +67,12 @@ Rails.application.routes.draw do get 'projects/:id/issues/report', :to => 'reports#issue_report', :as => 'project_issues_report' get 'projects/:id/issues/report/:detail', :to => 'reports#issue_report_details', :as => 'project_issues_report_details' - get '/issues/imports/new', :to => 'imports#new', :defaults => { :type => 'IssueImport' }, :as => 'new_issues_import' - get '/time_entries/imports/new', :to => 'imports#new', :defaults => { :type => 'TimeEntryImport' }, :as => 'new_time_entries_import' - get '/users/imports/new', :to => 'imports#new', :defaults => { :type => 'UserImport' }, :as => 'new_users_import' + get '/issues/imports/new', :to => 'imports#new', + :defaults => {:type => 'IssueImport'}, :as => 'new_issues_import' + get '/time_entries/imports/new', :to => 'imports#new', + :defaults => {:type => 'TimeEntryImport'}, :as => 'new_time_entries_import' + get '/users/imports/new', :to => 'imports#new', + :defaults => {:type => 'UserImport'}, :as => 'new_users_import' post '/imports', :to => 'imports#create', :as => 'imports' get '/imports/:id', :to => 'imports#show', :as => 'import' match '/imports/:id/settings', :to => 'imports#settings', :via => [:get, :post], :as => 'import_settings' |