Sha256: d7a1be7af53e4c499f7d4e4a4f20ab49d77d9e8e2dc0d0eb1d397a3fa4b145d0
Contents?: true
Size: 1.91 KB
Versions: 2
Compression:
Stored size: 1.91 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 :languages do collection do post 'search' end end resources :pages do collection do post 'search' get 'newfolder' post 'createfolder' get :newtextpage post :createtextpage 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' get :newlayout post :createlayout get :newblock post :createblock get :panel_blocks 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 :resources do collection do post 'search' end member do get 'usage' end end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optimacms-0.2.21 | config/routes.rb |
optimacms-0.2.20 | config/routes.rb |