patch_file/config/routes.rb

24 lines
879 B
Ruby

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
end
end
end