patch_file/config/routes.rb

24 lines
879 B
Ruby
Raw Permalink Normal View History

2019-09-28 11:48:59 +00:00
Rails.application.routes.draw do
locales = Site.first.in_use_locales rescue I18n.available_locales
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
namespace :admin do
get 'patchfiles' , to: 'patchfiles#index'
get 'patchfiles/repair_module' , to: 'patchfiles#repair_module'
get 'patchfiles/showckeditor' , to: 'patchfiles#showckeditor'
get 'patchfiles/editckeditor' , to: 'patchfiles#editckeditor'
get 'patchfiles/editfontfile' , to: 'patchfiles#editfontfile'
post 'patchfiles/newfont' , to: 'patchfiles#newfont'
get 'patchfiles/newfont' , to: 'patchfiles#newfont'
patch 'patchfiles/newfont' , to: 'patchfiles#newfont'
post 'patchfiles/edit' , to: 'patchfiles#edit'
get 'patchfiles/edit' , to: 'patchfiles#edit'
patch 'patchfiles/edit' , to: 'patchfiles#edit'
resources :patchfiles
2019-09-28 11:48:59 +00:00
end
end
end