Sha256: 73d1aa413a1aaf06656c9a9311424d987ca61967b450ce42d77b91a2b1d5febc
Contents?: true
Size: 1.41 KB
Versions: 3
Compression:
Stored size: 1.41 KB
Contents
Optimacms::Engine.routes.draw do # admin scope '/'+Optimacms.admin_namespace, module: "admin" do #devise_for :users, { class_name: "Optimacms::User", module: :devise } get '/' => 'dashboard#index', as: :dashboard get '/res' => 'common#res', as: :res_common resources :pages do collection do post 'search' get 'newfolder' post 'createfolder' end member do get 'editfolder' patch 'updatefolder' end end resources :templates do collection do post 'search' get :autocomplete get 'newattach' post 'attach' get 'newfolder' post 'createfolder' end member do get 'editfolder' patch 'updatefolder' end end resources :layouts resources :mediafiles, only: [:index] #get '/elfinder_manager', to: 'elfinder#index' match '/media_elfinder' => 'mediafiles#elfinder', via: [:get, :post] resources :app_sys do collection do get :restart end end end # dev get 'dev/:action', to: 'dev#action' # tinymce #post '/tinymce_assets' => 'tinymce_assets#create', as: :tinymce_uploadimage get '/elfinder_manager', to: 'elfinder#index' match 'elfinder' => 'elfinder#elfinder', via: [:get, :post] # root to: 'pages#show' match '*url', :to => 'pages#show', via: :all, format: false, as: :cms_page end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
optimacms-0.1.61 | config/routes.rb |
optimacms-0.1.60 | config/routes.rb |
optimacms-0.2.2 | config/routes.rb |